7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Fix build for MacOS

Accidentally removed our patch to allow three-way compare on MacOS
This commit is contained in:
Seth Hillbrand 2024-09-17 22:25:44 -05:00
parent df869036e5
commit f978fd4436

View File

@ -205,14 +205,13 @@ public:
int compare( const BASE_SET& other ) const
{
auto result = std::lexicographical_compare_three_way( begin(), end(), other.begin(), other.end() );
return result == std::strong_ordering::equal ? 0 : ( result == std::strong_ordering::less ? -1 : 1 );
return alg::lexicographical_compare_three_way( begin(), end(), other.begin(), other.end() );
}
// Define less-than operator for comparison
bool operator<( const BASE_SET& other ) const
{
return std::lexicographical_compare( begin(), end(), other.begin(), other.end() );
return alg::lexicographical_compare( begin(), end(), other.begin(), other.end() ) < 0;
}
// Custom iterator to iterate over set bits