Sept. 1, 2005
12:56 a.m.
"Alexis H. Rivera-Rios" <ahrivera@yahoo.com> writes:
Can somebody explain why this message occurs?
aclass.MyFunction(object1, object2) did not match C++ signature: MyFunction(class A{lvalue}, class boost::shared_ptr<B> >)
That's not the actual message, is it? The first line looks specific.
I get the error when object2 is a python class that implements the interface specified by B.
the problem is that you're calling a C++ function. "Implements the interface" isn't enough; it needs to be an instance of the Python class that wraps B, and its __init__ function needs to have been called to initialize the contained C++ B object. IOW, there has to be a real, C++ B object there. -- Dave Abrahams Boost Consulting www.boost-consulting.com