Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-11-10 11:17:26


Doug Gregor wrote:
> On Nov 10, 2004, at 9:50 AM, Peter Dimov wrote:
>
>> Doug Gregor wrote:
>>> On Nov 9, 2004, at 6:45 AM, Michiel Salters wrote:
>>>> The boost::function template works with boost::ref according to the
>>>> docs,
>>>> so try boost::function< int ( int ) > ( boost::ref( Op() ) )
>>> Or boost::bind:
>>> boost::bind(boost::ref(Op()), _1, _2)
>>> boost::ref should actually do this on its own (according to Library
>>> TR1), but the code to do so is languishing in the sandbox.
>>
>> What needs to be done in order to promote the sandbox ref into a
>> boost ref?
>
> Dealing with broken compilers, mostly. IIRC, the code is usable and
> mostly correct (the TR has changed slightly, so it is likely
> out-of-sync w.r.t. member pointers and such), but we can't have
> reference_wrapper barfing on all the compilers that don't support its
> tricks.

How about putting result_of in boost and looking at the regression tests as
a first step?


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