Commit 209748f1 authored by vitaut's avatar vitaut

Workaround a bug in Apple LLVM version 4.2 of clang (#276)

parent f64ea623
......@@ -1955,7 +1955,13 @@ struct ArgArray<N, true/*IsPacked*/> {
typedef Value Type[N > 0 ? N : 1];
template <typename Formatter, typename T>
static Value make(const T &value) { return MakeValue<Formatter>(value); }
static Value make(const T &value) {
Value result = MakeValue<Formatter>(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 <unsigned N>
......
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