forked from fmtlib/fmt
Add format_arg::operator bool
This commit is contained in:
@@ -1031,6 +1031,8 @@ struct Value {
|
||||
// allow storage in internal::MemoryBuffer.
|
||||
struct format_arg : internal::Value {
|
||||
Type type;
|
||||
|
||||
explicit operator bool() const noexcept { return type != NONE; }
|
||||
};
|
||||
|
||||
namespace internal {
|
||||
|
Reference in New Issue
Block a user