Skip to content

Commit

Permalink
Update delegate.impl.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
oktonion committed Sep 9, 2024
1 parent fb77ac5 commit 4fe3a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delegates/delegate.impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ namespace delegates
case detail::less:
return detail::compare(lhs_call.pthis_, rhs_call.pthis_, detail::less) ||
(!detail::compare(rhs_call.pthis_, lhs_call.pthis_, detail::less) &&
std::memcmp(lhs_call.union_, rhs_call.union_, sizeof(lhs_call.union_) < 0)); break;
std::memcmp(lhs_call.union_, rhs_call.union_, sizeof(lhs_call.union_)) < 0); break;
case detail::greater:
return detail::compare(rhs_call.pthis_, lhs_call.pthis_, detail::less) ||
(!detail::compare(lhs_call.pthis_, rhs_call.pthis_, detail::less) &&
std::memcmp(rhs_call.union_, lhs_call.union_, sizeof(lhs_call.union_) < 0)); break;
std::memcmp(rhs_call.union_, lhs_call.union_, sizeof(lhs_call.union_)) < 0); break;
case detail::equal:
return detail::compare(lhs_call.pthis_, rhs_call.pthis_, detail::equal) &&
(0 == std::memcmp(lhs_call.union_, rhs_call.union_, sizeof(lhs_call.union_))); break;
Expand Down

0 comments on commit 4fe3a69

Please sign in to comment.