mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 02:29:08 +00:00
Add format_arg::operator bool
This commit is contained in:
parent
119a63ab72
commit
48fe97835b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user