Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-12-12 11:42:37

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:
> However, so far all I've got is shown in the attachment. But
> that's not what, AFAICT, Abraham's new_does.
> Could someone show me how to do Abraham's new with functional/forward?
OK, I spoke too soon. The new attachment shows:


IOW, the new_<T>() creates the boost::forward_adapter which is then
invoked with the (arg1,arg2,...,argN).

Is this the way to do it ( where 'it' is use functional/forward to
emulate Abraham's new_)?

Boost list run by bdawes at, gregod at, cpdaniel at, john at