Fix NonZero

This commit is contained in:
vitaut 2015-03-25 09:29:40 -07:00
parent 885d1a1c64
commit d618f8baac

View File

@ -704,7 +704,7 @@ void format_windows_error(fmt::Writer &out, int error_code,
// allocating an array of 0 size. // allocating an array of 0 size.
template <unsigned N> template <unsigned N>
struct NonZero { struct NonZero {
enum { VALUE = N > 0 ? N : 0 }; enum { VALUE = N > 0 ? N : 1 };
}; };
// A formatting argument. It is a POD type to allow storage in // A formatting argument. It is a POD type to allow storage in