Closed Pespon closed 3 months ago
Also, calling type_of on those alias member do not compile.
I think this is correct behavior. As per D2996R3:
If
r
is already a type,type_of(r)
is not a constant expression.
I agree that name_of(members_of(^bar)[0])
should be int_type
, though - good catch!
Bug Report name_of return the type name instead of the alias name when used whith alias member infos obtained via members_of. Also, calling type_of on those alias member do not compile.
To Reproduce
Expected behavior
got:
Additional context tested on commit c2764acc619ae358a42aa8d8fddd4bef7788aad6