Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-04-10 12:55:39

----- Original Message -----
From: "Norman Shelley (rrdn60)" <rrdn60_at_[hidden]>

> I am building a boost python extension (dynamically loaded shared library)
> using boost 1.21.1, python2.1b2, gcc 2.95.3 on HPUX. It is working very
> nicely, thanks to all those who provided it.
> I have a function that gets called from within my python environment (see
> below).
> Do I need to explicitly destroy the alist instance and if alist.size() is
> 0 the atuple, err, ... instances?

Nope. The underlying Python objects are reference counted by the
boost::python object wrappers. When the latter goes out of scope, the
referent objects should be destroyed (assuming there are no other references
lying around).


Boost list run by bdawes at, gregod at, cpdaniel at, john at