Fix a bogus -Wduplicated-branches gcc warning (#573)

This commit is contained in:
Victor Zverovich 2017-09-27 19:21:49 -07:00
parent 2a619d96dd
commit bef89db6e7

View File

@ -2323,7 +2323,8 @@ struct ArgArray;
template <std::size_t N>
struct ArgArray<N, true/*IsPacked*/> {
typedef Value Type[N > 0 ? N : 1];
// '+' is used to silence GCC -Wduplicated-branches warning.
typedef Value Type[N > 0 ? N : +1];
template <typename Formatter, typename T>
static Value make(const T &value) {