Add format_arg::operator bool

This commit is contained in:
Victor Zverovich 2016-10-02 09:36:40 -07:00
parent 119a63ab72
commit 48fe97835b

View File

@ -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 {