Disabled constexpr const container tests for C++11

This commit is contained in:
John Wellbelove 2025-09-04 12:52:35 +01:00
parent 958c331d49
commit 0deb855676
13 changed files with 63 additions and 34 deletions

View File

@ -5,10 +5,11 @@ Updates:
#1170 Place a typed pointer instead of a bool into etl::typed_storage
Modified the storage used by etl::typed_storage to be a union, along the lines of etl::optional.
Added etl::typed_storage_ext to wrap external storage.
Fixes:
#1176 Fix GCC __builtin_memcpy errors when compiling with -O2 optimisation
#1180 Duplicate definition of const_reference in etl::const_set_ext
===============================================================================
20.43.0

View File

@ -41,6 +41,8 @@ SOFTWARE.
#include "data.h"
#if ETL_USING_CPP14
namespace
{
static constexpr size_t Max_Size = 10UL;
@ -1711,3 +1713,5 @@ namespace
}
};
}
#endif

View File

@ -41,6 +41,8 @@ SOFTWARE.
#include "data.h"
#if ETL_USING_CPP14
namespace
{
static constexpr size_t Max_Size = 10UL;
@ -1509,3 +1511,5 @@ namespace
}
};
}
#endif

View File

@ -86,10 +86,10 @@ namespace
}
// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN

View File

@ -37,6 +37,8 @@ SOFTWARE.
#include "data.h"
#if ETL_USING_CPP14
namespace
{
static constexpr size_t Max_Size = 10UL;
@ -86,10 +88,10 @@ namespace
}
// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN
@ -1324,3 +1326,5 @@ namespace
}
};
}
#endif

View File

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

View File

@ -38,6 +38,8 @@ SOFTWARE.
#include "data.h"
#if ETL_USING_CPP14
namespace
{
static constexpr size_t Max_Size = 10UL;
@ -86,11 +88,11 @@ namespace
return (lhs.k == rhs.k);
}
//// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
// Equality operator for Key != Key
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN
@ -1421,3 +1423,5 @@ namespace
}
};
}
#endif

View File

@ -84,10 +84,10 @@ namespace
}
// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN

View File

@ -33,6 +33,8 @@ SOFTWARE.
#include <utility>
#include <iterator>
#if ETL_USING_CPP14
#include "etl/const_set.h"
namespace
@ -84,10 +86,10 @@ namespace
}
// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN
@ -1433,3 +1435,5 @@ namespace
}
};
}
#endif

View File

@ -90,10 +90,10 @@ namespace
}
// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN

View File

@ -41,6 +41,8 @@ SOFTWARE.
#include "data.h"
#if ETL_USING_CPP14
namespace
{
static constexpr size_t Max_Size = 10UL;
@ -90,10 +92,10 @@ namespace
}
// Equality operator for Key != Key
//constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
//{
// return !(lhs.k == rhs.k);
//}
constexpr bool operator !=(const Key& lhs, const Key& rhs) noexcept
{
return !(lhs.k == rhs.k);
}
#define TEST_GREATER_THAN
#ifdef TEST_GREATER_THAN
@ -1568,3 +1570,5 @@ namespace
}
};
}
#endif

View File

@ -11367,6 +11367,7 @@
<ClCompile Include="..\unittest++\XmlTestReporter.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\etl-arduino\.github\workflows\platformio-update.yml" />
<None Include="..\..\.circleci\config.yml" />
<None Include="..\..\.clang-format" />
<None Include="..\..\.coderabbit.yaml" />

View File

@ -3883,6 +3883,9 @@
<None Include="..\..\.coderabbit.yaml">
<Filter>Resource Files\CI</Filter>
</None>
<None Include="..\..\..\etl-arduino\.github\workflows\platformio-update.yml">
<Filter>ETL\Arduino</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Text Include="..\..\support\Release notes.txt">