Skip to content

Commit

Permalink
Remove redundant tuple<> implementation of IsEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed May 26, 2021
1 parent e65161f commit e455f13
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/mock/detail/IsEqual.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ all i = 0 .. n, then
and ...
and IsEqual<T1, U1>{}(std::get<n>(t), std::get<n>(u))`.
(5) If T, U are `std::tuple<>` then `IsEqual<T, U>::operator()` always
(4') If T, U are `std::tuple<>` then `IsEqual<T, U>::operator()` always
returns zero.
Otherwise, IsEqual is undefined. Note that the five specializations are
not implemented in numerical order.
Otherwise, IsEqual is undefined. Note that the specializations may not
be implemented in numerical order.
*/

template<typename T, typename U = T, typename enable = void>
Expand Down Expand Up @@ -223,18 +223,6 @@ struct IsEqual<
}
};

/* ************************************
* (5)
* ************************************ */
template<>
struct IsEqual<std::tuple<>, std::tuple<>> : public IIsEqual<std::tuple<>>
{
bool operator()(const std::tuple<>&, const std::tuple<>&) const override
{
return true;
}
};

}} // namespace drmock

#endif /* DRMOCK_SRC_MOCK_DETAIL_ISEQUAL_H */

0 comments on commit e455f13

Please sign in to comment.