Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-12-17 07:53:33


On 12/12/07 10:42, Larry Evans wrote:
> On 12/12/07 09:46, Larry Evans wrote:
>> I've been trying, unsuccessfully, to use the forward library to do what
>> the
>>
>> template<class T> inline std::auto_ptr<T> new_
>> (/*variadic number args passed to T CTOR/*)
>>
>> function shown in the attachment to:
>>
>> http://lists.boost.org/Archives/boost/2007/12/131251.php
>>
[snip]
>> Could someone show me how to do Abraham's new with functional/forward?
>>
> OK, I spoke too soon. The new attachment shows:
>
> new_<T>()(arg1,arg2,...,argN)
>
[snip]
The new functional/factory is probably the way to go. The attachment
shows a slight modification (addition of factory_fwd template) of
the libs/functional/factory/test/factory.cpp file to demonstrate the
idea.

I just should have been more patient and waited for functional/factory
:(




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