Commit 03c1b110 authored by Victor Zverovich's avatar Victor Zverovich

Fix gcc 4.4 build

parent cc805c61
...@@ -45,6 +45,7 @@ using testing::StrictMock; ...@@ -45,6 +45,7 @@ using testing::StrictMock;
namespace { namespace {
#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 408
template <typename T> template <typename T>
bool check_enabled_formatter() { bool check_enabled_formatter() {
static_assert(std::is_default_constructible<fmt::formatter<T>>::value, ""); static_assert(std::is_default_constructible<fmt::formatter<T>>::value, "");
...@@ -60,6 +61,7 @@ void check_enabled_formatters() { ...@@ -60,6 +61,7 @@ void check_enabled_formatters() {
TEST(FormatterTest, TestFormattersEnabled) { TEST(FormatterTest, TestFormattersEnabled) {
check_enabled_formatters<char, signed char, unsigned char>(); check_enabled_formatters<char, signed char, unsigned char>();
} }
#endif
// Format value using the standard library. // Format value using the standard library.
template <typename Char, typename T> template <typename Char, typename T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment