[C++-sig] what does this message mean?

Alexis H. Rivera-Rios ahrivera at yahoo.com
Wed Aug 31 19:34:48 CEST 2005

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> >)

I get the error when object2 is a python class that
implements the interface specified by B.

class Object2Class(B):
   def functionFromB(self):
      # do something here

What is the correct way of passing this kind of object
to C++?

Any help will be greatly appreciated. 


Programming Tutorial:
In Python: To do this, do this
In Perl: To do this, do this or this or this or this...
In C: To do this, do this, but be careful
In C++: To do this, do this, but don't do this, be careful of this, watch out for this, and whatever you do, don't do this

Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 

More information about the Cplusplus-sig mailing list