mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-03 06:41:03 +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;
|
fmt::StringRef message) FMT_NOEXCEPT;
|
||||||
#endif
|
#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.
|
// A formatting argument value.
|
||||||
struct Value {
|
struct Value {
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
|
Loading…
Reference in New Issue
Block a user