Boost logo

Boost Users :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2007-07-10 10:12:23


Hi,

> I have been using boost wave library without much problems so
> far. But recently when I was trying to compile our program
> with UNICODE mode using
> VC++ 2005 Express, I got this compile error:
>
> c:\users\tools\boost\boost_1_34_0\boost\wave\util\cpp_macromap
.hpp(683) :
> error C2001: newline in constant
>
> It complains about the following lines:
>
> argument->push_back(token_type(T_PLACEMARKER, "?,

[snip]

> It was strange to me that without setting to UNICODE mode, I
> did not have this problem.

This has been fixed in Boost::CVS head already. Please replace the "$" by a "\xA7".

> Another interesting thing is that if I added the closing
> double quate " and changed the line as to below, the compile
> error went away:
>
> argument->push_back(token_type(T_PLACEMARKER, "?",

Don't do that. Wave is relying on a specific character there.

> But I am not sure if I am doing right thing and not sure if
> the wave developer really missed closing double quate.

The double quote has been eaten by your unicode editor.

HTH
Regards Hartmut


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