[C++-sig] Re: Pickling problem

Pierre Barbier de Reuille pierre.barbier at cirad.fr
Mon Mar 1 16:38:43 CET 2004


This does not work because return_internal_reference<> requires a
pointer or reference. However, I think that :

PyObject* test_base( Proxy& p )
{
  return
return_internal_reference<1>::result_converter::apply<Base*>::type()(
p.getBase() );
}

gives the same result that you suggested.

On Mon, 2004-03-01 at 16:38, David Abrahams wrote:
> Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:
> 
> > I didn't receive any other answer ! Did you post it for another question
> > ? If not, can you repost it ?
> 
> http://article.gmane.org/gmane.comp.python.c%2B%2B/5973
> 
> It's untested, but if it works, it's much better.
-- 
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