mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
ARM5 (armcc) compiler fixes for C++11. (#261)
This commit is contained in:
parent
dfb0251e57
commit
a33a70b5e1
@ -184,7 +184,7 @@ namespace etl
|
||||
return reinterpret_cast<const T*>(data);
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
#if ETL_CPP11_SUPPORTED && !defined(ETL_COMPILER_ARM5)
|
||||
alignas(ALIGNMENT) char data[LENGTH];
|
||||
#else
|
||||
union
|
||||
|
||||
@ -751,7 +751,7 @@ namespace etl
|
||||
//***************************************************************************
|
||||
/// Alignment templates.
|
||||
/// These require compiler specific intrinsics.
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
#if ETL_CPP11_SUPPORTED && !defined(ETL_COMPILER_ARM5)
|
||||
template <typename T> struct alignment_of : integral_constant<size_t, alignof(T)> { };
|
||||
#elif ETL_COMPILER_MICROSOFT
|
||||
template <typename T> struct alignment_of : integral_constant<size_t, size_t(__alignof(T))> {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user