Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2008-07-14 09:51:21


Robert Jones wrote:
> On Fri, Jul 11, 2008 at 4:41 PM, David Abrahams <dave_at_[hidden]> wrote:
>
> Note that std::endl can cause you big troouble, but since you're using
>> '\n' above I don't see a reason to worry. You do need something like
>> "using namespace boost::lambda;" to make "_1" valid, though.
>>
>>
> Back in the office on Monday morning, and applying my new found
> knowledge my Boost-using code compiles perfectly, but for one little
> snag!
>
> For brevity and clarity I posted example code using '\n' line terminators.
> However my real code uses endl - which is indeed causing me big troouble!
>
> Are there any techniques for successfully using std::endl in lamda
> functions?

FWIW, std::endl is ok with Phoenix.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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