From c5fe3eb87eb050ca919ccc0bae8444ec607b2166 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 5 May 2016 07:48:06 -0700 Subject: [PATCH] Fix code bloat regression on gcc 5.3.1 with -std=c++11 (#315) --- fmt/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fmt/format.h b/fmt/format.h index dc840a95..5f2b1dae 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -2094,11 +2094,15 @@ struct ArgArray { template static Value make(const T &value) { +#ifdef __clang__ Value result = MakeValue(value); // Workaround a bug in Apple LLVM version 4.2 (clang-425.0.28) of clang: // https://github.com/fmtlib/fmt/issues/276 (void)result.custom.format; return result; +#else + return MakeValue(value); +#endif } };