mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-11 21:38:05 +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.
|
// allow storage in internal::MemoryBuffer.
|
||||||
struct format_arg : internal::Value {
|
struct format_arg : internal::Value {
|
||||||
Type type;
|
Type type;
|
||||||
|
|
||||||
|
explicit operator bool() const noexcept { return type != NONE; }
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
Loading…
Reference in New Issue
Block a user