"example/example-operator-overloading.cpp" did not exist on "607654f7ece64240ab56f47a48b13f64f56fe55f"
Commit 38fc542f authored by Jason Rhinelander's avatar Jason Rhinelander Committed by GitHub
Browse files

Merge pull request #709 from jagerman/enum-extra-constructor

Remove extraneous `enum_` python constructor
parents 414ee163 e3705209
...@@ -1143,7 +1143,6 @@ public: ...@@ -1143,7 +1143,6 @@ public:
return m; return m;
}, return_value_policy::copy); }, return_value_policy::copy);
def("__init__", [](Type& value, Scalar i) { value = (Type)i; }); 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("__int__", [](Type value) { return (Scalar) value; });
def("__eq__", [](const Type &value, Type *value2) { return value2 && value == *value2; }); def("__eq__", [](const Type &value, Type *value2) { return value2 && value == *value2; });
def("__ne__", [](const Type &value, Type *value2) { return !value2 || value != *value2; }); def("__ne__", [](const Type &value, Type *value2) { return !value2 || value != *value2; });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment