Compiler.h: drop gcc_alignas(), use plain C++11 alignas()
This commit is contained in:
@@ -160,14 +160,6 @@
|
||||
#define gcc_restrict
|
||||
#endif
|
||||
|
||||
/* C++11 features */
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
||||
#define gcc_alignas(T, fallback) alignas(T)
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef __has_feature
|
||||
// define dummy macro for non-clang compilers
|
||||
#define __has_feature(x) 0
|
||||
|
@@ -50,7 +50,7 @@
|
||||
*/
|
||||
template<class T>
|
||||
class Manual {
|
||||
gcc_alignas(T, 8)
|
||||
alignas(T)
|
||||
char data[sizeof(T)];
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
Reference in New Issue
Block a user