Код: Выделить всё
#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]
Мобильная версия