mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
Remove extraneous enum_ python constructor
Added in 6fb48490ef
The second constructor can't be doing anything--the signatures are
exactly the same, and so the first is always going to be the one
invoked by the dispatcher.
This commit is contained in:
parent
414ee163cc
commit
e370520918
@ -1143,7 +1143,6 @@ public:
|
||||
return m;
|
||||
}, return_value_policy::copy);
|
||||
def("__init__", [](Type& value, Scalar i) { value = (Type)i; });
|
||||
def("__init__", [](Type& value, Scalar i) { new (&value) Type((Type) i); });
|
||||
def("__int__", [](Type value) { return (Scalar) value; });
|
||||
def("__eq__", [](const Type &value, Type *value2) { return value2 && value == *value2; });
|
||||
def("__ne__", [](const Type &value, Type *value2) { return !value2 || value != *value2; });
|
||||
|
Loading…
Reference in New Issue
Block a user