Menu

#36 Excluding all constructors doesn't generate "no_init"

open
nobody
None
5
2011-12-15
2011-12-15
No

Excluding all constructors of a class doesn't result in the generated "boost::python::class_" template instantiation getting a "boost::python::no_init" argument when the class has a publicly-accessible trivial constructor.

The "pyplusplus.decl_wrappers.class_wrapper.class_t._get_no_init" method only checks the value of the constructors' "ignore" properties when the class doesn't contain a publicly-accessible trivial constructor. If a class' publicly-accessible trivial constructor has been explicitly excluded shouldn't the "boost::python::no_init" argument be specified anyway?

This bug was found in revision 1856.

Discussion


Log in to post a comment.