[C++-sig] newbie questions
Stefan Seefeld
seefeld at sympatico.ca
Mon Oct 7 20:27:05 CEST 2002
David Abrahams wrote:
> How about using boost::shared_ptr<Foo> as your HeldType and returning
> boost::shared_ptr<Foo> from your factory function?
ok. Now I have
python::class_<Foo,
boost::shared_ptr<Foo>,
boost::noncopyable> hello("Foo");
but the compiler complains. You use a 'assert_default_constructible'
class to make sure 'Foo' can be default-constructed, though obviously
in my case it shouldn't (only the factory should construct 'Foo's).
What am I missing ?
Stefan
More information about the Cplusplus-sig
mailing list