Boost logo

Boost :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2006-06-08 10:38:56

Maciej Sobczak wrote:

> In the Quickstart page of the Wave docs there is an example:
> typedef wave::context<std::string::iterator,
> wave::cpplexer::lex_token<> >
> context_t;

This was a bug in the documentation, which has been fixed already (see here: /

It should be:

    // The template boost::wave::cpplexer::lex_token<> is the
    // token type to be used by the Wave library.
        typedef boost::wave::cpplexer::lex_token<>
    // The template boost::wave::cpplexer::lex_iterator<> is
    // the lexer type to be used by the Wave library.
        typedef boost::wave::cpplexer::lex_iterator<
            token_type> lex_iterator_type;
    // This is the resulting context type to use. The first
    // template parameter should match the iterator type to
    // be used during construction of the corresponding context
    // object (see below).
        typedef boost::wave::context<
                std::string::iterator, lex_iterator_type>

Which compiles fine.

Thanks for reporting!
Regards Hartmut

Boost list run by bdawes at, gregod at, cpdaniel at, john at