util/Manual: use gcc_alignas()

This commit is contained in:
Max Kellermann 2014-12-09 23:05:47 +01:00
parent 7b60e3916c
commit 1e073a196f

View File

@ -54,12 +54,7 @@
*/
template<class T>
class Manual {
#if GCC_OLDER_THAN(4,8)
/* no alignas() on gcc < 4.8: apply worst-case fallback */
__attribute__((aligned(8)))
#else
alignas(T)
#endif
gcc_alignas(T, 8)
char data[sizeof(T)];
#ifndef NDEBUG