Fix gcc version check for noexcept.

This commit is contained in:
Victor Zverovich 2013-11-16 07:19:59 -08:00
parent d49845510e
commit 2aa4cd9827

View File

@ -50,7 +50,7 @@
// Define FMT_USE_NOEXCEPT to make format use noexcept (C++11 feature).
#if FMT_USE_NOEXCEPT || \
(defined(__has_feature) && __has_feature(cxx_noexcept)) || \
(__GNUC__ >= 4 && __GNUC_MINOR__ >= 8)
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
# define FMT_NOEXCEPT(expr) noexcept(expr)
#else
# define FMT_NOEXCEPT(expr)