Рассмотрим этот пример:
Код: Выделить всё
#include
template
void hello(T& a) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78684462/how-does-c-choose-between-ambiguous-templates-here[/url]Код: Выделить всё
#include
template
void hello(T& a) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78684462/how-does-c-choose-between-ambiguous-templates-here[/url]