
17 Dec
2007
17 Dec
'07
12:53 p.m.
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:
[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 :(