From 87317df69a6c7b5282206d9052fdfd0be72cb022 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 22 Dec 2017 11:12:12 +0000 Subject: [PATCH] Changed alignof to etl::alignment_of --- library.properties | 2 +- src/pool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index 24c1d7e5..8096d610 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 8120748d..ae7cc334 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(); }