[pygccxml-development] Force bp::no_init
Brought to you by:
mbaas,
roman_yakovenko
From: Kevin B. <tec...@ne...> - 2006-09-20 20:42:36
|
Is there some way to force a class_ to be instantiated with bp::no_init, as in: bp::class_<Foo>("Foo", bp::no_init) I have a class that should not be constructible in Python, but instead only available via a factory function. The matching C++ class does have a public default constructor and is not abstract. It's a third-party library so I can't change the declaration. I couldn't find any apparent decoration method to do this. I tried explicitly ignoring the default constructor but that didn't work either. Thanks, --- Kevin |