mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-20 02:46:44 +08:00
Changed alignof to etl::alignment_of
This commit is contained in:
parent
dbd07f53dd
commit
87317df69a
@ -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.
|
||||
|
||||
@ -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>();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user