Attempted fixes for MacOS compilation

This commit is contained in:
John Wellbelove 2025-09-04 15:00:22 +01:00
parent b5ea03133d
commit bb628aa25d
7 changed files with 11 additions and 3 deletions

View File

@ -85,7 +85,7 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP23
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{

View File

@ -87,11 +87,13 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#endif
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN

View File

@ -86,7 +86,7 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP23
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{

View File

@ -88,7 +88,7 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP23
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{

View File

@ -83,11 +83,13 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#endif
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN

View File

@ -89,11 +89,13 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#endif
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN

View File

@ -91,11 +91,13 @@ namespace
return (lhs.k == rhs.k);
}
#if ETL_NOT_USING_CPP20
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#endif
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN