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:

http://tinyurl.com/rcgkj /
http://boost-consulting.com/boost/libs/wave/doc/quickstart.html).

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<>
            token_type;
    
    // 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>
            context_type;

Which compiles fine.

Thanks for reporting!
Regards Hartmut


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk