Skip to content

Commit

Permalink
Workaround GCC bug 67371 (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 16, 2018
1 parent 70dffc6 commit 505b3ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 505b3ae

Please sign in to comment.