mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-04 15:40:07 +00:00
Workaround GCC bug 67371 (#682)
This commit is contained in:
parent
70dffc639a
commit
505b3ae66f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user