Template Function c4::bm2str(Enum, char *, size_t, EnumOffsetType)

Function Documentation

template<class Enum>
std::enable_if<is_scoped_enum<Enum>::value, size_t>::type c4::bm2str(Enum bits, char *str = nullptr, size_t sz = 0, EnumOffsetType offst = EOFFS_PFX)

scoped enums do not convert automatically to their underlying type, so this SFINAE overload will accept scoped enum symbols and cast them to the underlying type