The following should be valid:
enum E
{
e1, e2
};
int main()
{
constexpr auto m = meta::members_of( ^E );
template for (constexpr auto x: m) {
char const * name = meta::name_of( x );
}
}
However, we do not setup an immediate invocation correctly for the meta::name_of call. This results in an incorrect diagnostic.