Boost logo

Boost Users :

Subject: Re: [Boost-users] Wave doesn't recognize c++0x keywords ?
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2011-10-18 08:14:36


> I'm new to Boost.Wave. I followed the "quick start", but found that wave
> take the C++0x keyword "decltype" as an identifier instead of a keyword.
> The macro "BOOST_WAVE_SUPPORT_CPP0X" is defined as "1".
> Boost version: 1.47.0
> Any suggestions ?

The C++0x functionalities are enabled by passing --c++0x on the command line
(I really ought to change that to --c++11, btw).
If you use Wave as a library you need to enable this by invoking:

    ctx.set_language(boost::wave::support_cpp0x);

HTH
Regards Hartmut
---------------
http://boost-spirit.com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net