[C++-sig] new call policy - return_range

Roman Yakovenko roman.yakovenko at gmail.com
Tue Feb 20 18:18:44 CET 2007


On 2/20/07, Hans Meine <meine at informatik.uni-hamburg.de> wrote:
> Hi!
>
> Am Dienstag, 20. Februar 2007 12:16 schrieb Roman Yakovenko:
> > Class return_range is a model of CallPolicies, which can be used to
> > wrap C++ functions that return a pointer to some array. The new call
> > policy constructs object, which provides a regular Python sequence
> > interface.
>
> Interesting.  (Why) Is the second template parameter (TValueType) necessary?
> Are there cases where it is != the dereferenced pointer type?

No, but Boost.Python call policies class does not provide that information.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list