Код: Выделить всё
#include
#include
template T const& max(T const &a, T const &b){
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79581656/overload-c-function-template-results-in-warning-returning-reference-to-local-t[/url]Код: Выделить всё
#include
#include
template T const& max(T const &a, T const &b){
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79581656/overload-c-function-template-results-in-warning-returning-reference-to-local-t[/url]