Fix code bloat regression on gcc 5.3.1 with -std=c++11 (#315)

This commit is contained in:
Victor Zverovich 2016-05-05 07:48:06 -07:00
parent b2a8141373
commit c5fe3eb87e

View File

@ -2094,11 +2094,15 @@ struct ArgArray<N, true/*IsPacked*/> {
template <typename Formatter, typename T> template <typename Formatter, typename T>
static Value make(const T &value) { static Value make(const T &value) {
#ifdef __clang__
Value result = MakeValue<Formatter>(value); Value result = MakeValue<Formatter>(value);
// Workaround a bug in Apple LLVM version 4.2 (clang-425.0.28) of clang: // Workaround a bug in Apple LLVM version 4.2 (clang-425.0.28) of clang:
// https://github.com/fmtlib/fmt/issues/276 // https://github.com/fmtlib/fmt/issues/276
(void)result.custom.format; (void)result.custom.format;
return result; return result;
#else
return MakeValue<Formatter>(value);
#endif
} }
}; };