[Python] Bug when exporting function overloaded on base and derived classes

Hi,
I've found a bug where Boost.Python calls the wrong function overload. Here
is a small unit test:
=====
The C++ module "_test.cpp":
=====
#include
from _test import * f(Base()) 'Base' f(Derived()) 'Base'
=====
Interestingly enough, if the function overloads are exported in the inverse
order, it actually works, i.e., if using this code:
=====
BOOST_PYTHON_MODULE( _test )
{
using namespace boost::python;
class_<Base>("Base");
class_
participants (1)
-
Edson Tadeu