mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-02 04:04:44 +02:00
Add format_arg::operator bool
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user