Шаблонная переменная в классе C ++C++

Программы на C++. Форум разработчиков
Anonymous
Шаблонная переменная в классе C ++

Сообщение Anonymous »

Я хочу использовать в классе , а не -templaed, шаблонная переменная:

Код: Выделить всё

#include 
#include 
#include 

class A
{
private:

public:
// generic functor
std::ostream& os;
template
void operator()(const T& obj) { os 

Подробнее здесь: [url]https://stackoverflow.com/questions/79702384/templated-variable-within-a-c-class[/url]

Вернуться в «C++»