Workaround GCC bug 67371 (#682)

This commit is contained in:
Victor Zverovich 2018-03-16 12:02:19 -04:00
parent 70dffc639a
commit 505b3ae66f

View File

@ -49,9 +49,10 @@
#endif
// Check if relaxed c++14 constexpr is supported.
// 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 >= 500 || \
(FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_GCC_VERSION >= 600 || \
FMT_MSC_VER >= 1910)
#endif
#if FMT_USE_CONSTEXPR