[C++-sig] conversion of std::list<...> parameters in function call
David Abrahams
david.abrahams at rcn.com
Sun Jun 23 12:03:23 CEST 2002
Ralf,
Cool! Please remind me of this on Wednesday; I am currently stuck in a
Microsoft gravity well, trying to survive the inevitable impact.
Best Regards,
Dave
----- Original Message -----
From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com>
To: <c++-sig at python.org>
Sent: Sunday, June 23, 2002 5:57 AM
Subject: RE: [C++-sig] conversion of std::list<...> parameters in function
call
> --- Achim Domma <achim.domma at syynx.de> wrote:
> > Is it ok to use this code in my (free) ImageMagick wrapper, if I mark
it as
> > based on work copyrighted by you and your university, or is there a
license
> > probem?
>
> Please remove my list_or_tuple_as_tuple hack from your mind and your
disk. It
> is not appropriate for general consumption. Here is something better that
works
> with the latest CVS and that you may use without restrictions:
>
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/cctbx/cctbx/include/cctbx/bp
l_utils.h?rev=1.2.2.13&only_with_tag=boost_python_v2_transition&content-typ
e=text/vnd.viewcvs-markup
>
> See also files
> bpl_utils.cpp
> container_from_list_or_tuple.cpp
> container_from_list_or_tuple.py
> in:
>
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/cctbx/cctbx/misc/?only_with_
tag=boost_python_v2_transition
>
> The new code is based on PySequence_Fast and will be much more efficient
than
> the old code if you pass a list or tuple (because these are not copied
any
> longer).
>
> To get started, look for "sequence_fast" in bpl_utils.h.
>
> Did you have to write a new adoptor fr std::list<>? If so, could you
please
> post it?
>
> David, please feel free to incorporate the sequence_fast class or any
other
> code from cctbx::bpl_utils into Boost.Python.
>
> Ralf
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
More information about the Cplusplus-sig
mailing list