[C++-sig] need 16 arguments to a function...
anders langlands
anderslanglands at gmail.com
Sat Nov 25 17:48:31 CET 2006
Aha yes that's much better, thank you
A
On 11/25/06, Stefan Seefeld <seefeld at sympatico.ca> wrote:
>
> anders langlands wrote:
> > Can I change the max arguments limit for methods without recompiling
> > boost::python? I need an initializer for a 4x4 matrix, hence the need
> > for 16 floats.
>
> FWIW, I have used hand-coded construction / conversion code to generate
> C++ containers ('Vector', here) from python lists, such as this:
>
> std::auto_ptr<Vector> construct_vector(bpl::list l)
> {
> long len = bpl::extract<long>(l.attr("__len__")());
> std::auto_ptr<Vector> vector(new Vector(len));
> for (long i = 0; i != len; ++i) vector->put(i,
> bpl::extract<double>(l[i]));
> return vector;
> }
>
> May be something similar would work for you, too ?
>
> HTH,
> Stefan
>
>
> --
>
> ...ich hab' noch einen Koffer in Berlin...
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20061125/5b67e185/attachment.htm>
More information about the Cplusplus-sig
mailing list