[C++-sig] Re: compile problems
Paul F. Kunz
Paul_Kunz at SLAC.Stanford.EDU
Sat Aug 3 16:23:39 CEST 2002
Problem solved. I changed the code to
--
python::ref TClassWrap_instantiate_raw( PyObject * aTuple, PyObject * aDict )
{
PyObject* self = PyTuple_GetItem(aTuple, 0);
TClassWrap* cw = BOOST_PYTHON_CONVERSION::from_python( self,python::type<TClassWrap*>());
PyObject * obj = cw->m_constructor->invoke(aTuple, aDict);
python::ref r (obj);
return r;
}
--
Using explict constructor instead of assignment of python::ref did the
trick.
More information about the Cplusplus-sig
mailing list