Boost logo

Boost :

Subject: Re: [boost] Rave for proposed Boost.Local (functions)
From: Pierre Morcello (pmorcell-cppfrance_at_[hidden])
Date: 2011-02-05 03:32:33


> On 2/5/11 6:03 AM, Alexander Nasonov > wrote: > > We came up with something like this: >> void BOOST_LOCAL_FUNCTION( BOOST_BIND((factor)(&sum)), double num ) > > { > > sum += factor *num; > > std::clog<< "Summed:"<< sum << std::endl; > > } > > BOOST_LOCAL_FUNCTION_DECL(add) Joel de Guzman wrote : > That is nice! +1 Best regards, Pierre Morcello


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