[C++-sig] conversion of std::list<...> parameters in function call
David Abrahams
david.abrahams at rcn.com
Thu Jun 20 15:12:42 CEST 2002
----- Original Message -----
From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com>
> This code has a flaw (marked with XXX) and will not compile with the
latest
> CVS. Replacing "ref" by "handle<>" and "make_ref" by "object" is the
minimum
> that has to be done, but more adjustment might be necessary. A week ago
it
> worked with std::vector and boost::array. I have not tested it with
std::list.
> Another adaptor might be required (see struct
> variable_size_container_registration_adaptor).
>
> Sorry for all the vagueness. I would not normally have advertised the
code, but
> who am I to resist David's challenges?
BTW, you might look at the PySequence_FAST... functions for this.
-Dave
More information about the Cplusplus-sig
mailing list