diff --git a/include/ak_toolkit/tagged_bool.hpp b/include/ak_toolkit/tagged_bool.hpp index b591b23..418bd9b 100644 --- a/include/ak_toolkit/tagged_bool.hpp +++ b/include/ak_toolkit/tagged_bool.hpp @@ -44,4 +44,10 @@ using tagged_bool_ns::tagged_bool; // with this tagged_bool is in namespace xpli } } +// A helper macro to reduce boiler plate when creating tagged bools, e.g., +// AKT_MAKE_TAGGED_BOOL( is_ready ); +// AKT_MAKE_TAGGED_BOOL( has_signaled ); +#define AKT_MAKE_TAGGED_BOOL( Name ) \ + using Name = ::ak_toolkit::xplicit::tagged_bool< class Name##ExplicitBoolTag > + #endif