Is there a way in Py++ to deal with overloaded member
functions
introduced by 'using' declarations?
For example, for the following declarations, Py++ creates
the code below.
-----------------------------------------------------
class B {
public:
void f();
};
class D : public B {
public:
void f(int i);
using B::f;
};
-----------------------------------------------------
// This file has been generated by Py++.
#include "boost/python.hpp"
#include "killme.hh"
namespace bp = boost::python;
BOOST_PYTHON_MODULE(killme){
bp::class_< B >( "B" )
.def("f", &::B::f );
bp::class_< D, bp::bases< B > >(
"D" )
.def("f", &: ::f, (
bp::arg("i") ) );
}
-----------------------------------------------------
Compiling this with g++ results in an "unresolved
overloaded
function type" error, because g++ cannot choose
between
D::f() and D::f(int).
--
Pertti
_______________________________________________
C++-sig mailing list
C++-sig python.org
http:
//mail.python.org/mailman/listinfo/c++-sig
|