diff --git a/include/etl/nullptr.h b/include/etl/nullptr.h index 4668c803..df0008c4 100644 --- a/include/etl/nullptr.h +++ b/include/etl/nullptr.h @@ -67,6 +67,27 @@ namespace std // Can't take address of nullptr. void operator&() const ETL_DELETE; }; + + template + bool operator==(const T* t, const std::nullptr_t nullptr) { + return t == (T*)0; + } + + template + bool operator==(const std::nullptr_t nullptr, const T* t) { + return t == nullptr; + } + + template + bool operator!=(const T* t, const std::nullptr_t nullptr) { + return !(t == nullptr); + } + + template + bool operator!=(const std::nullptr_t nullptr, const T* t) { + return t != nullptr; + } + } //***************************************************************************** diff --git a/include/etl/string_view.h b/include/etl/string_view.h index bae52147..b580ebe9 100644 --- a/include/etl/string_view.h +++ b/include/etl/string_view.h @@ -864,12 +864,18 @@ namespace etl //************************************************************************* /// Swaps the values. //************************************************************************* -template > +template void swap(etl::basic_string_view& lhs, etl::basic_string_view& rhs) { lhs.swap(rhs); } +template +void swap(etl::basic_string_view >& lhs, etl::basic_string_view >& rhs) +{ + lhs.swap(rhs); +} + #include "private/minmax_pop.h" #undef ETL_FILE diff --git a/support/Release notes.txt b/support/Release notes.txt index 9988d6bb..d848f41f 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -13,7 +13,9 @@ Added code for ARM5 compiler compatibility in limits.h Simplified conditional compilation for nullptr definition. -Compiler compatibility changes to assign() in etl::string_view +Changes to assign() in etl::string_view for compiler compatibility + +Changes to container iterators fo compiler compatibility. =============================================================================== 16.8.1