diff --git a/src/Set.h b/src/Set.h index 5a9c04c67..c693c8a33 100644 --- a/src/Set.h +++ b/src/Set.h @@ -81,6 +81,11 @@ template class Set { return Set(~value); } + /** @brief Value as boolean */ + inline constexpr explicit operator bool() const { + return value == 0; + } + /** @brief Value in underlying type */ inline constexpr explicit operator UnderlyingType() const { return value;