[C++-sig] Pickling problem
Pierre Barbier de Reuille
pierre.barbier at cirad.fr
Mon Mar 1 15:04:31 CET 2004
Ok, I've found the solution of my problem.
If I create a function with this implementation :
PyObject* test_base( Proxy& p )
{
return reference_existing_object::apply<Base*>::type()( p.getBase() );
}
The PyObject* will have the correct type (ie. not Base* but the dynamic
type of the result).
Pierre
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33) 4 67 61 65 77 fax : (33) 4 67 61 56 68
More information about the Cplusplus-sig
mailing list