Код: Выделить всё
#include
template
struct Foo
{
public:
T DataMember;
};
template
struct Foo
{
public:
void bar()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78253098/why-cant-i-use-templates-members-in-its-specialization[/url]