Fix gcc 4.4 build

This commit is contained in:
Victor Zverovich 2018-11-08 12:41:55 -08:00
parent cc805c6162
commit 03c1b110a5

View File

@ -45,6 +45,7 @@ using testing::StrictMock;
namespace {
#if !FMT_GCC_VERSION || FMT_GCC_VERSION >= 408
template <typename T>
bool check_enabled_formatter() {
static_assert(std::is_default_constructible<fmt::formatter<T>>::value, "");
@ -60,6 +61,7 @@ void check_enabled_formatters() {
TEST(FormatterTest, TestFormattersEnabled) {
check_enabled_formatters<char, signed char, unsigned char>();
}
#endif
// Format value using the standard library.
template <typename Char, typename T>