Skip to content

Commit

Permalink
Remove VectorBase::eq
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Dec 2, 2023
1 parent dc533de commit 8e4fb01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions soup/Poly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ namespace soup
{
bool Poly::operator==(const Poly& b) const
{
return this->a.eq(b.a)
&& this->b.eq(b.b)
&& this->c.eq(b.c)
return this->a == b.a
&& this->b == b.b
&& this->c == b.c
;
}

Expand Down
8 changes: 1 addition & 7 deletions soup/VectorBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ namespace soup
}

template <typename T2>
[[nodiscard]] bool eq(const T2& b) const noexcept
[[nodiscard]] bool operator==(const T2& b) const noexcept
{
for (uint8_t i = 0; i != getAxes(); ++i)
{
Expand All @@ -204,12 +204,6 @@ namespace soup
return true;
}

template <typename T2>
[[nodiscard]] bool operator==(const T2& b) const noexcept
{
return eq(b);
}

template <typename T2>
[[nodiscard]] bool operator!=(const T2& b) const noexcept
{
Expand Down

0 comments on commit 8e4fb01

Please sign in to comment.