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" <> 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.


Dave Abrahams
BoostPro Computing

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