You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
273 B

#define UNC_DECLARE_FLAGS(flag_type, enum_type) \
using flag_type = flags<enum_type>
#define UNC_DECLARE_OPERATORS_FOR_FLAGS(flag_type) \
inline flag_type operator&(flag_type::enum_t f1, flag_type::enum_t f2) \
{ return(flag_type { f1 } & f2); }