[C++-sig] make_constructor issues

Stefan Seefeld sseefeld at art.ca
Fri Jul 23 22:50:25 CEST 2004



> To me it seems the best implementation of the factory should return
> auto_ptr<Foo> or shared_ptr<Foo> in order to avoid a copy.

But copy-construct it must anyways, simply because I chose to export
the type as class_<Foo>, not class_<Foo, shared_ptr<Foo> > !?!

Stefan
 



More information about the Cplusplus-sig mailing list