mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Workaround GCC bug 67371 (#682)
This commit is contained in:
@ -49,9 +49,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Check if relaxed c++14 constexpr is supported.
|
// Check if relaxed c++14 constexpr is supported.
|
||||||
|
// GCC doesn't allow throw in constexpr until version 6 (bug 67371).
|
||||||
#ifndef FMT_USE_CONSTEXPR
|
#ifndef FMT_USE_CONSTEXPR
|
||||||
# define 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)
|
FMT_MSC_VER >= 1910)
|
||||||
#endif
|
#endif
|
||||||
#if FMT_USE_CONSTEXPR
|
#if FMT_USE_CONSTEXPR
|
||||||
|
Reference in New Issue
Block a user