[C++-sig] make_constructor issues

Stefan Seefeld sseefeld at art.ca
Fri Jul 23 19:04:02 CEST 2004

hi there,

the wrapper 'python.hpp' header doesn't include
the 'make_constructor.hpp' file. Shouldn't it ?

Then I try to make

Foo make_foo()
  Foo foo;
  return foo;

a constructor (i.e. binding it to '__init__' via
'make_constructor'), but I get an error message about
'element_type' not being a member of Foo. The
examples I'v found all use pointes, so I changed
the 'make_foo' function to return a pointer.
That works, but is not what I want to do.
What's the problem ?


More information about the Cplusplus-sig mailing list