mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
False -> FalseType (#483)
This commit is contained in:
parent
6c3aa28c94
commit
fbc8ea8c3e
@ -1216,7 +1216,7 @@ template <>
|
|||||||
struct Not<false> { enum { value = 1 }; };
|
struct Not<false> { enum { value = 1 }; };
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct False { enum { value = 0 }; };
|
struct FalseType { enum { value = 0 }; };
|
||||||
|
|
||||||
template <typename T, T> struct LConvCheck {
|
template <typename T, T> struct LConvCheck {
|
||||||
LConvCheck(int) {}
|
LConvCheck(int) {}
|
||||||
@ -1256,7 +1256,7 @@ inline fmt::StringRef thousands_sep(...) { return ""; }
|
|||||||
|
|
||||||
template <typename Formatter, typename Char, typename T>
|
template <typename Formatter, typename Char, typename T>
|
||||||
void format_arg(Formatter &, const Char *, const T &) {
|
void format_arg(Formatter &, const Char *, const T &) {
|
||||||
FMT_STATIC_ASSERT(False<T>::value,
|
FMT_STATIC_ASSERT(FalseType<T>::value,
|
||||||
"Cannot format argument. To enable the use of ostream "
|
"Cannot format argument. To enable the use of ostream "
|
||||||
"operator<< include fmt/ostream.h. Otherwise provide "
|
"operator<< include fmt/ostream.h. Otherwise provide "
|
||||||
"an overload of format_arg.");
|
"an overload of format_arg.");
|
||||||
|
Loading…
Reference in New Issue
Block a user