|
Boost Users : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-05-23 10:44:12
Ah, I lied. The def's were happening in a different module. Would that be the cause?
-----Original Message-----
From: boost-users-bounces_at_[hidden] on behalf of Sohail Somani
Sent: Wed 5/23/2007 7:30 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] [Python] Exposing foo(std::vector<double>)
Hi,
Given: foo(const std::vector<double> &)
Is there anything special I need to do to expose foo above? I have:
..MODULE(test)
{
def("foo",foo);
}
I've also tried:
...MODULE(test)
{
class_<std::vector<double> >("vector_d")
.def(vector_indexing_suite<...>)
;
def("foo",foo);
}
In both cases, I get Boost.Python throwing an error saying that the signature doesn't match when being called from Python. If there is some documentation I have overlooked, I would appreciate a pointer.
Sohail
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net