mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Fix code bloat regression on gcc 5.3.1 with -std=c++11 (#315)
This commit is contained in:
parent
b2a8141373
commit
c5fe3eb87e
@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user