On Thu, Oct 14, 2010 at 1:17 PM, Bryant Gipson <[email protected]> wrote:
C++:
>
> void mySlightlyHelpfulFunction(cppmodule::A &a)
> {
> ...
> }
>
> Python:
> a = mod.A()
> myModule.mySlightlyHelpfulFunction(a)
> myModule.mySlightlyHelpfulFunction(A)
> did not match C++ signature:
> mySlightlyHelpfulFunction(mod::A {lvalue})
>
Just a guess, but would declaring it as:
void mySlightlyHelpfulFunction(const cppmodule::A &a)
work better? (Note insertion of "const")
The {lvalue} in the signature output suggests that the problem could be that
Boost.Python is internally constructing a C++ temporary cppmodule::A value
and trying to pass it into mySlightlyHelpfulFunction().
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig