'os: std::ostream' in method '<class '???'>.print' into a Python object (type not registered yet?)
I am trying to generate binding for a C++ class library. The generated for a class method looks like this:
.def("print", static_cast<void ( sc_bit::* )( ::std::ostream & )const>(&sc_bit::print), py::arg("os") = (::std::ostream &)std::cout)
For the method defined as:
void print( ::std::ostream& os = std::cout ) const;
And I get this error when I import the resulting module:
ImportError: arg(): could not convert default argument 'os: std::ostream' in method '<class '?'>.print' into a Python object (type not registered yet?)