Код: Выделить всё
// T.h
template class X
{
public:
void foo(int a = 42);
};
Код: Выделить всё
// Main.cpp
#include "T.h"
#include
template void X::foo(int a = 13)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/2479846/no-redefinition-of-default-parameter-error-for-class-template-member-function[/url]
Мобильная версия