I was thinking naively that inside template class I can refer to non-existing objects because they are not necessary before instantiation. But this doesn't work (compiler complains about non-declared NAME):
template<typename H>
class HandlerInfoClass
{
std::string_view getName()
{
return NAME;
}
};
Is there any way to overcome this without using the preprocessor or adding new template arguments (some of them may have types not allowed in this context)?