Skip to content

Commit

Permalink
Added missing typename
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Sep 17, 2024
1 parent b8cfc57 commit 2ad030d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/amulet/collections/eq.py.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ template <typename R, typename clsT>
void Eq(clsT cls) {
cls.def(
"__eq__",
[](const clsT::type& self, R other) {
[](const typename clsT::type& self, R other) {
return self == other;
}
);
Expand All @@ -21,7 +21,7 @@ void Eq(clsT cls) {

template <typename clsT>
void Eq(clsT cls) {
Eq<const clsT::type&>(cls);
Eq<const typename clsT::type&>(cls);
}


Expand All @@ -30,7 +30,7 @@ void Eq_default(clsT cls) {
py::object NotImplemented = py::module::import("builtins").attr("NotImplemented");
cls.def(
"__eq__",
[NotImplemented](const clsT::type& self, py::object other) -> std::variant<bool, py::types::NotImplementedType> {
[NotImplemented](const typename clsT::type& self, py::object other) -> std::variant<bool, py::types::NotImplementedType> {
return NotImplemented;
}
);
Expand Down

0 comments on commit 2ad030d

Please sign in to comment.