util/Manual: use gcc_alignas()
This commit is contained in:
parent
7b60e3916c
commit
1e073a196f
@ -54,12 +54,7 @@
|
|||||||
*/
|
*/
|
||||||
template<class T>
|
template<class T>
|
||||||
class Manual {
|
class Manual {
|
||||||
#if GCC_OLDER_THAN(4,8)
|
gcc_alignas(T, 8)
|
||||||
/* no alignas() on gcc < 4.8: apply worst-case fallback */
|
|
||||||
__attribute__((aligned(8)))
|
|
||||||
#else
|
|
||||||
alignas(T)
|
|
||||||
#endif
|
|
||||||
char data[sizeof(T)];
|
char data[sizeof(T)];
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user