[C++-sig] why am I getting a Boost.Python.ArgumentError?

2009-08-24 Thread Tom Haynes
When trying to called a wrapped method (getName) from python, I get the following error: return self.geometry.getName() Boost.Python.ArgumentError: Python argument types in Geometry.getName(Geometry) did not match C++ signature: getName(gfx::Geometry {lvalue}) I don't understand why t

Re: [C++-sig] why am I getting a Boost.Python.ArgumentError?

2009-08-25 Thread Tom Haynes
Fixed it. The self.geometry came from a list of Geometrys, which in C++ was a std::vector. I had used the vector_indexing_suite to wrap this list, but forgot to include the "true" as the NoProxy template parameter (since they're boost::shared_ptrs). -tom On Mon, Aug 24, 2009