Ah, I lied. The def's were happening in a different module. Would that be the cause?

-----Original Message-----
From: boost-users-bounces@lists.boost.org on behalf of Sohail Somani
Sent: Wed 5/23/2007 7:30 AM
To: boost-users@lists.boost.org
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