|
Boost-Build : |
From: Bilokon, Paul (paul.bilokon_at_[hidden])
Date: 2008-05-10 16:13:05
Hi all,
This is probably a trivial question, but after some research I was
unable to find a "best practice" answer, so my sincere apologies.
I am trying to expose a C++ function which takes an std::vector<double>
as its argument, some
void A::foo(std::vector<double> v);
And perhaps
void A::bar(std::vector<double> & v);
Whether it is a good practice to have such arguments is, of course, open
to debate (shouldn't they be iterators?), but this is what I have to
work with.
The question remains, what is the best way to expose these to python? I
cannot pass a Python list -- it's a type mismatch.
Many thanks!
Regards,
Paul
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk