Например, дано: < /p>
Код: Выделить всё
struct inner1 {};
struct inner2 {};
template
struct outer {
struct /*gets the concrete name of T*/ {
static constexpr int value = 5;
};
};
Код: Выделить всё
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79676858/using-c26-reflections-to-inject-a-structs-name-into-another-struct[/url]
Мобильная версия