[C++-sig] make_constructor issues

Stefan Seefeld sseefeld at art.ca
Fri Jul 23 22:05:14 CEST 2004


well, the reason I'm asking because I found it counter-intuitive.
Having defined a wrapper via

class_<Foo> foo("Foo");

I'd expect to pass values around, not Foo pointers. If it is
a limitation of make_constructor, it should be documented.

It's not an issue, though, in this particular case. I'm
wrapping legacy code, and the Foo in question is a small
structure, which however, isn't properly initialized in its
default constructor, so instead of using that I'd like to
make a factory that does the initialization...

Thanks,
		Stefan



More information about the Cplusplus-sig mailing list