$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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 work.it 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] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution