Skip to content

Commit 41539c2

Browse files
committedJan 22, 2025·
Workaround a bug in gcc 6 (#4318)
1 parent aabe639 commit 41539c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎include/fmt/base.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
// Detect C++14 relaxed constexpr.
9797
#ifdef FMT_USE_CONSTEXPR
9898
// 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.
99+
#elif FMT_GCC_VERSION >= 702 && FMT_CPLUSPLUS >= 201402L
100+
// GCC only allows constexpr member functions in non-literal types since 7.2:
101+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297.
102102
# define FMT_USE_CONSTEXPR 1
103103
#elif FMT_ICC_VERSION
104104
# define FMT_USE_CONSTEXPR 0 // https://github.com/fmtlib/fmt/issues/1628

0 commit comments

Comments
 (0)
Please sign in to comment.