mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Remove internal::NonZero
This commit is contained in:
parent
e515e5f14e
commit
de994a27a7
7
format.h
7
format.h
@ -702,13 +702,6 @@ void format_windows_error(fmt::Writer &out, int error_code,
|
||||
fmt::StringRef message) FMT_NOEXCEPT;
|
||||
#endif
|
||||
|
||||
// Computes max(N, 1) at compile time. It is used to avoid errors about
|
||||
// allocating an array of 0 size.
|
||||
template <unsigned N>
|
||||
struct NonZero {
|
||||
enum { VALUE = N > 0 ? N : 1 };
|
||||
};
|
||||
|
||||
// A formatting argument value.
|
||||
struct Value {
|
||||
template <typename Char>
|
||||
|
Loading…
Reference in New Issue
Block a user