June 27, 2004
7:39 p.m.
Dusty Leary <dleary@gmail.com> writes:
The implicitly_convertible sample at http://boost.org/libs/python/doc/v2/implicit.html#implicitly_convertible-spe... works fine for me.
However, changing "int" to "char*" makes it stop working. Compiles fine, won't invoke at runtime.
From the traceback:
Boost.Python.ArgumentError: Python argument types in __testmodule__.test_string(X) did not match C++ signature: test_string(char *)
I am using MSVC7.1
Any info?
Full source code of your example? Perhaps the problem is that X isn't actually convertible to char*? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com