[C++-sig] implicitly_convertible and char*

Dusty Leary dleary at gmail.com
Sat Jun 26 18:59:53 CEST 2004


Hello,

The implicitly_convertible sample at
http://boost.org/libs/python/doc/v2/implicit.html#implicitly_convertible-spec
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?




More information about the Cplusplus-sig mailing list