gaoyakun <[EMAIL PROTECTED]> 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
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to