GCC 4.7 enables constexpr, not 4.6

This commit is contained in:
rdb 2014-07-17 16:18:04 +00:00
parent f805098a03
commit dba717fe83

View File

@ -124,7 +124,7 @@ typedef ios::seekdir ios_seekdir;
#if __has_extension(cxx_constexpr) #if __has_extension(cxx_constexpr)
#define CONSTEXPR constexpr #define CONSTEXPR constexpr
#endif #endif
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
#define CONSTEXPR constexpr #define CONSTEXPR constexpr
#else #else
#define CONSTEXPR INLINE #define CONSTEXPR INLINE