Рассмотрим следующий пример. Обратите внимание, что код чрезвычайно упрощен.
Код: Выделить всё
//S.hpp
#include
template
struct S;
template
S cast(S const &); //PROBLEMATIC!
template
std::ostream& operator
Подробнее здесь: [url]https://stackoverflow.com/questions/79245941/template-friend-function-of-two-typenames-for-a-template-class[/url]
Мобильная версия