Skip to content

Commit

Permalink
Changed alignof to etl::alignment_of
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Dec 22, 2017
1 parent dbd07f5 commit 87317df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=Embedded Template Library
version=10.8.0
version=10.8.1
author= John Wellbelove <john.wellbelove@etlcpp.com>
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
sentence=A C++ template library tailored for embedded systems.
Expand Down
2 changes: 1 addition & 1 deletion src/pool.h
Expand Up @@ -407,7 +407,7 @@ namespace etl
template <typename U>
U* allocate()
{
STATIC_ASSERT(alignof(U) <= ALIGNMENT_, "Type has incompatible alignment");
STATIC_ASSERT(etl::alignment_of<U>::value <= ALIGNMENT_, "Type has incompatible alignment");
STATIC_ASSERT(sizeof(U) <= ELEMENT_SIZE, "Type too large for pool");
return ipool::allocate<U>();
}
Expand Down

0 comments on commit 87317df

Please sign in to comment.