We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aabe639 commit 41539c2Copy full SHA for 41539c2
include/fmt/base.h
@@ -96,9 +96,9 @@
96
// Detect C++14 relaxed constexpr.
97
#ifdef FMT_USE_CONSTEXPR
98
// Use the provided definition.
99
-#elif FMT_GCC_VERSION >= 600 && FMT_CPLUSPLUS >= 201402L
100
-// GCC only allows throw in constexpr since version 6:
101
-// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67371.
+#elif FMT_GCC_VERSION >= 702 && FMT_CPLUSPLUS >= 201402L
+// GCC only allows constexpr member functions in non-literal types since 7.2:
+// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297.
102
# define FMT_USE_CONSTEXPR 1
103
#elif FMT_ICC_VERSION
104
# define FMT_USE_CONSTEXPR 0 // https://github.com/fmtlib/fmt/issues/1628
0 commit comments