Skip to content

Commit bb628aa

Browse files
author
John Wellbelove
committed
Attempted fixes for MacOS compilation
1 parent b5ea031 commit bb628aa

7 files changed

+11
-3
lines changed

test/test_const_multiset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace
8585
return (lhs.k == rhs.k);
8686
}
8787

88-
#if ETL_NOT_USING_CPP23
88+
#if ETL_NOT_USING_CPP20
8989
// Equality operator for Key != Key
9090
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9191
{

test/test_const_multiset_constexpr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,13 @@ namespace
8787
return (lhs.k == rhs.k);
8888
}
8989

90+
#if ETL_NOT_USING_CPP20
9091
// Equality operator for Key != Key
9192
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9293
{
9394
return !(lhs.k == rhs.k);
9495
}
96+
#endif
9597

9698
#define TEST_GREATER_THAN
9799
#ifdef TEST_GREATER_THAN

test/test_const_multiset_ext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace
8686
return (lhs.k == rhs.k);
8787
}
8888

89-
#if ETL_NOT_USING_CPP23
89+
#if ETL_NOT_USING_CPP20
9090
// Equality operator for Key != Key
9191
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9292
{

test/test_const_multiset_ext_constexpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ namespace
8888
return (lhs.k == rhs.k);
8989
}
9090

91-
#if ETL_NOT_USING_CPP23
91+
#if ETL_NOT_USING_CPP20
9292
// Equality operator for Key != Key
9393
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9494
{

test/test_const_set.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ namespace
8383
return (lhs.k == rhs.k);
8484
}
8585

86+
#if ETL_NOT_USING_CPP20
8687
// Equality operator for Key != Key
8788
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
8889
{
8990
return !(lhs.k == rhs.k);
9091
}
92+
#endif
9193

9294
#define TEST_GREATER_THAN
9395
#ifdef TEST_GREATER_THAN

test/test_const_set_ext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ namespace
8989
return (lhs.k == rhs.k);
9090
}
9191

92+
#if ETL_NOT_USING_CPP20
9293
// Equality operator for Key != Key
9394
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9495
{
9596
return !(lhs.k == rhs.k);
9697
}
98+
#endif
9799

98100
#define TEST_GREATER_THAN
99101
#ifdef TEST_GREATER_THAN

test/test_const_set_ext_constexpr.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ namespace
9191
return (lhs.k == rhs.k);
9292
}
9393

94+
#if ETL_NOT_USING_CPP20
9495
// Equality operator for Key != Key
9596
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9697
{
9798
return !(lhs.k == rhs.k);
9899
}
100+
#endif
99101

100102
#define TEST_GREATER_THAN
101103
#ifdef TEST_GREATER_THAN

0 commit comments

Comments
 (0)