mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-24 23:07:00 +00:00
resolve issue involving inheritance + def_static + override (fixes #511)
This commit is contained in:
@@ -260,7 +260,7 @@ protected:
|
||||
chain = (detail::function_record *) rec_capsule;
|
||||
/* Never append a method to an overload chain of a parent class;
|
||||
instead, hide the parent's overloads in this case */
|
||||
if (chain->class_ != rec->class_)
|
||||
if (chain->scope != rec->scope)
|
||||
chain = nullptr;
|
||||
}
|
||||
// Don't trigger for things like the default __init__, which are wrapper_descriptors that we are intentionally replacing
|
||||
|
||||
Reference in New Issue
Block a user