[C++-sig] Constructors taking raw pointers
Pertti Kellomäki
pk at cs.tut.fi
Fri Feb 9 12:15:33 CET 2007
Sorry if this a FAQ. I'm wrapping a C++ library where
raw pointers are passed around. I've read the relevant
FAQ entry about object ownership at
<http://www.boost.org/libs/python/doc/v2/faq.html#ownership>,
and I've got things working with transfer of ownership in
function calls.
However, I'm unsure how to extend that to constructors. How
would one expose a constructor that takes a raw pointer and
grabs ownership of the pointer?
Thanks,
--
Pertti
More information about the Cplusplus-sig
mailing list