Commit 48fe9783 authored by Victor Zverovich's avatar Victor Zverovich

Add format_arg::operator bool

parent 119a63ab
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment