Boost logo

Boost :

Subject: Re: [boost] [python] borrowed
From: David Abrahams (dave_at_[hidden])
Date: 2008-10-14 15:42:53


on Wed Oct 08 2008, "Robert Dailey" <rcdailey-AT-gmail.com> wrote:

> What is the purpose of boost::python::borrowed? The documentation has no
> description for this member that I can see.

It's not a member; it's a free function. It is used to label a
PyObject* so that the reference count will be incremented when a manager
(e.g. python::object) gets ahold of it.

HTH,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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