On Thu, Aug 17, 2017 at 12:32 AM, Jeremy Mayes <jeremy.ma...@gmail.com> wrote:
> File “.../test.py”, line 11, in <module>
>     b.foo(0)
> Boost.Python.ArgumentError: Python argument types in
>     B.foo(B, int)
> Did not match C++ signature:
>     foo(B {Value}, int, double)
>
> I’m not surprised by this behavior given python’s method resolution process.
> My question is whether there’s a good way to deal with this in boost.python
> so that I don’t have to add duplicate entries in sub-classes for methods
> I’ve already exposed in base classes.

Would you not have to declare the overloaded methods even if they were
all part of the same class? It might even work exactly the same way,
if the overloaded methods from the base class are not hidden.
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to