|
def( str( self)) error: msg#00240python.c++
I have a class that uses an overloaded << and >> operators for I/O. When I try to export that class with the member function .def( str( self)), I get a 'no function for call to' error. My operator has the following signature in C++, and works just fine for the standard streams, and stringstreams: namespace std { template<typename char_T, class traits> basic_ostream<char_T, traits>& operator<<( basic_ostream<char_T, traits>& stream, const physics::vector& v); // Definition not shown for brevity. } // !namespace std I'm using G++ 3.2.2, with identical errors on Win32/MinGW and Debian Sid. Thanks, Jonathan error quote --------------- no matching function for call to boost::python::class_<physics::vector, boost::python::detail::not_specified, (two more times)>::def(boost::python::str) ----------- end quote----- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: instantiating python objects within C++: 00240, David Abrahams |
|---|---|
| Next by Date: | Re: def( str( self)) error: 00240, David Abrahams |
| Previous by Thread: | missing boost::ref in pyste generated code?i: 00240, Giulio Eulisse |
| Next by Thread: | Re: def( str( self)) error: 00240, David Abrahams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |