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.

15 lines
682 B

#define DEFINE_OPERATORS(classT, flagsT) \
inline classT::flagsT \
operator&(const classT::flagsT& lh1, \
const classT::flagsT::EnumType rh1) \
{ \
return classT::flagsT(lhs) &= rhs; \
} \
\
inline classT::flagsT \
operator&(const classT::flagsT::EnumType lh2, \
const classT::flagsT& rh2) \
{ \
return classT::flagsT(lhs) &= rhs; \
}