Skip to content

Commit

Permalink
Fix C++ in sort.cpp for MacOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
sergv committed Dec 13, 2024
1 parent 11a0d9a commit 14ba95b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cbits/sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ bool operator < (
return *lhs.pval < rhs.val;
}

template <typename _Data1, typename _Data2, typename _Order>
bool operator < (
const value_reference_t<_Data1, _Data2, _Order>& lhs,
const value_reference_t<_Data1, _Data2, _Order>& rhs
)
{
return *lhs.pval < *rhs.pval;
}

template <typename _Data1, typename _Data2, typename _Order>
void swap(
value_reference_t<_Data1, _Data2, _Order> lhs,
Expand Down

0 comments on commit 14ba95b

Please sign in to comment.