nameof
nameof copied to clipboard
Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
```c++ struct A{}; class B{}; enum C{}; template class D{}; constexpr auto name_A = nameof::nameof_type(); // "struct A" constexpr auto name_B = nameof::nameof_type(); // "class B" constexpr auto name_C =...
I see that many functions return `cstring`s, but `NAMEOF_MEMBER` is not one of them. Unfortunately, the fact that it is a string_view by the time it gets to me means...
`nameof` version: 0.10.4 `` defines `I` as a shorthand for the imaginary constant $i$. This mangles the template argument `I` and causes compilation to fail. (Context is that I'm working...