Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-08 09:46:50

gaoyakun <gaoyakun_at_[hidden]> writes:

> how can i dealing a function which returns a raw pointer? for
> example: int * Foo (A_Class);
> i have tried return_value_policy(reference_existing_object) or
> return_value_policy(manage_new_object) but it doesnt seem's
> that it only accept a pointer of a C++ class like Foo* or Foo&.

Yeah, in Python ints are immutable. There's no sensible way to
represent a pointer-to-int in Python.

                       David Abrahams
   dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

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