Skip to content

Commit 2d1af2d

Browse files
author
John Wellbelove
committed
Attempted fixes for MacOS compilation
1 parent 0deb855 commit 2d1af2d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/test_const_multiset.cpp

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

88+
#if !defined(ETL_DEVELOPMENT_OS_APPLE)
8889
// Equality operator for Key != Key
8990
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9091
{
9192
return !(lhs.k == rhs.k);
9293
}
94+
#endif
9395

9496
#define TEST_GREATER_THAN
9597
#ifdef TEST_GREATER_THAN

test/test_const_multiset_ext.cpp

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

89+
#if !defined(ETL_DEVELOPMENT_OS_APPLE)
8990
// Equality operator for Key != Key
9091
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9192
{
9293
return !(lhs.k == rhs.k);
9394
}
95+
#endif
9496

9597
#define TEST_GREATER_THAN
9698
#ifdef TEST_GREATER_THAN

test/test_const_multiset_ext_constexpr.cpp

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

91+
#if !defined(ETL_DEVELOPMENT_OS_APPLE)
9192
// Equality operator for Key != Key
9293
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
9394
{
9495
return !(lhs.k == rhs.k);
9596
}
97+
#endif
9698

9799
#define TEST_GREATER_THAN
98100
#ifdef TEST_GREATER_THAN

0 commit comments

Comments
 (0)