Код: Выделить всё
template
class Holder
{
T& held;
public:
Holder(T& h)
: held(h)
{}
friend std::ostream& operator
Подробнее здесь: [url]https://stackoverflow.com/questions/78665074/template-type-deduction-include-the-const[/url]Код: Выделить всё
template
class Holder
{
T& held;
public:
Holder(T& h)
: held(h)
{}
friend std::ostream& operator
Подробнее здесь: [url]https://stackoverflow.com/questions/78665074/template-type-deduction-include-the-const[/url]