[C++-sig] Re: make_constructor issues

David Abrahams dave at boost-consulting.com
Sat Jul 24 16:32:28 CEST 2004

Stefan Seefeld <sseefeld at art.ca> writes:

>> 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> > !?!

No; there's no copy construction.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list