diff --git a/example/example12.cpp b/example/example12.cpp index 5d32eed1..5cc8dc87 100644 --- a/example/example12.cpp +++ b/example/example12.cpp @@ -89,6 +89,8 @@ void init_ex12(py::module &m) { /* Declare that 'PyExample12' is really an alias for the original type 'Example12' */ .alias() .def(py::init()) + /* Copy constructor (not needed in this case, but should generally be declared in this way) */ + .def(py::init()) /* Reference original class in function definitions */ .def("run", &Example12::run) .def("run_bool", &Example12::run_bool)