diff --git a/library.properties b/library.properties index 24c1d7e5d..8096d6106 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Embedded Template Library -version=10.8.0 +version=10.8.1 author= John Wellbelove maintainer=John Wellbelove sentence=A C++ template library tailored for embedded systems. diff --git a/src/pool.h b/src/pool.h index 8120748d5..ae7cc3349 100644 --- a/src/pool.h +++ b/src/pool.h @@ -407,7 +407,7 @@ namespace etl template U* allocate() { - STATIC_ASSERT(alignof(U) <= ALIGNMENT_, "Type has incompatible alignment"); + STATIC_ASSERT(etl::alignment_of::value <= ALIGNMENT_, "Type has incompatible alignment"); STATIC_ASSERT(sizeof(U) <= ELEMENT_SIZE, "Type too large for pool"); return ipool::allocate(); }