Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-02-09 16:27:39


----- Original Message -----
From: "Phlip" <pplumlee_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, February 09, 2001 3:47 PM
Subject: Re: [boost] Re: Detachable objects in BPL

> Proclaimed David Abrahams from the mountaintops:
>
> > if (result.get() != 0) {
> > return boost::python::reference(boost::python::to_python(result));
> > }
> > else {
> > Py_INCREF(Py_None);
> > return boost::python::reference(Py_None);
>
> Below my sig appears how far I could take this in example1.cpp. But it
> expires with these dying screams:

> I'l keep researching what to put in the reference<> template, so I'm
> posting my results asynchronously...

Sorry, change that to boost::python::ref

> > Maybe I should automatically convert null smart pointers to None and
> > None to null smart pointers. I never thought to do it. Opinions?
>
> Ain't that what both SWIG and CXX do?

I doubt it. Neither one handles arbitrary smart pointers.

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk