Boost logo

Boost Users :

From: Fanzhe Cui (fanzhe.cui_at_[hidden])
Date: 2007-07-10 08:45:55


I did not see my msg went through. So posting again.

Best regards,
Fanzhe Cui

++++++++++++++++++++++++++++++++++++++++++++++++++++++
Goldiom Systems LLC
- Information and Communication Technology Provider
Email: fanzhe.cui_at_[hidden]
Tel: 973-210-4254
www.goldiom.com

-----Original Message-----
From: Fanzhe Cui [mailto:fanzhe.cui_at_[hidden]]
Sent: 2007Äê7ÔÂ10ÈÕ 5:22
To: 'boost-users_at_[hidden]'
Subject: [Boost-users] [wave] compling error - error C2001: newline in
constant

Hello, Wave experts,

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, "?,

I copy more lines of the file here:
#if BOOST_WAVE_SUPPORT_VARIADICS_PLACEMARKERS != 0
                            if
(boost::wave::need_variadics(ctx.get_language())) {
                            // store a placemarker as the argument
 
argument->push_back(token_type(T_PLACEMARKER, "?,
        
(*next).get_position()));
                                ++count_arguments;
                            }

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

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, "?",

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

If anybody could provide an insight to this issue, it is appreciated.

Best regards,
Fanzhe Cui

++++++++++++++++++++++++++++++++++++++++++++++
Goldiom Systems LLC
- Information and Communication Technology Provider
Email: fanzhe.cui_at_[hidden]
Tel: 973-210-4254
www.goldiom.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