From 209748f1284b48ab4a71babc9224f4a1cd6ab558 Mon Sep 17 00:00:00 2001 From: vitaut Date: Tue, 23 Feb 2016 07:27:01 -0800 Subject: [PATCH] Workaround a bug in Apple LLVM version 4.2 of clang (#276) --- cppformat/format.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cppformat/format.h b/cppformat/format.h index 6f35275b50a5..c5d09b57badf 100644 --- a/cppformat/format.h +++ b/cppformat/format.h @@ -1955,7 +1955,13 @@ struct ArgArray { typedef Value Type[N > 0 ? N : 1]; template - static Value make(const T &value) { return MakeValue(value); } + static Value make(const T &value) { + Value result = MakeValue(value); + // Workaround a bug in Apple LLVM version 4.2 (clang-425.0.28) of clang: + // https://github.com/cppformat/cppformat/issues/276 + (void)result.custom.format; + return result; + } }; template