diff --git a/include/async_mqtt5/property_types.hpp b/include/async_mqtt5/property_types.hpp index 1aa3806..b3745cf 100644 --- a/include/async_mqtt5/property_types.hpp +++ b/include/async_mqtt5/property_types.hpp @@ -54,6 +54,10 @@ public: return !empty(); } + explicit operator bool() const noexcept { + return !empty(); + } + int32_t& operator*() noexcept { return front(); }