Fix compilation with new gcc and -std=c++11 (#734)
This commit is contained in:
parent
f0ae725721
commit
46c374a8a9
@ -52,8 +52,8 @@
|
||||
// GCC doesn't allow throw in constexpr until version 6 (bug 67371).
|
||||
#ifndef FMT_USE_CONSTEXPR
|
||||
# define FMT_USE_CONSTEXPR \
|
||||
(FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_GCC_VERSION >= 600 || \
|
||||
FMT_MSC_VER >= 1910)
|
||||
(FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VER >= 1910 || \
|
||||
(FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L))
|
||||
#endif
|
||||
#if FMT_USE_CONSTEXPR
|
||||
# define FMT_CONSTEXPR constexpr
|
||||
|
@ -116,7 +116,7 @@
|
||||
#endif
|
||||
|
||||
#if FMT_USE_USER_DEFINED_LITERALS && \
|
||||
(FMT_GCC_VERSION >= 600 || \
|
||||
((FMT_GCC_VERSION >= 600 && __cplusplus >= 201402L) || \
|
||||
(defined(FMT_CLANG_VERSION) && FMT_CLANG_VERSION >= 304))
|
||||
# define FMT_UDL_TEMPLATE 1
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user