From b0e9ab8fd2ed30eeb79310d3e238be47b32df402 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 18 Mar 2022 15:12:44 +0000 Subject: [PATCH] Made etl::swap ETL_CONSTEXPR14 --- include/etl/utility.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/utility.h b/include/etl/utility.h index 68cf79bd..aec6cc67 100644 --- a/include/etl/utility.h +++ b/include/etl/utility.h @@ -75,7 +75,7 @@ namespace etl //*************************************************************************** // swap template - void swap(T& a, T& b) ETL_NOEXCEPT + ETL_CONSTEXPR14 void swap(T& a, T& b) ETL_NOEXCEPT { T temp(ETL_MOVE(a)); a = ETL_MOVE(b); @@ -83,7 +83,7 @@ namespace etl } template< class T, size_t N > - void swap(T(&a)[N], T(&b)[N]) ETL_NOEXCEPT + ETL_CONSTEXPR14 void swap(T(&a)[N], T(&b)[N]) ETL_NOEXCEPT { for (size_t i = 0UL; i < N; ++i) {