Код: Выделить всё
template
int get_num(const T&)
{
return 42;
}
struct Foo
{
int i = get_num(*this);
};
int get_num(const Foo&)
{
return 23;
}
int main()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/69966230/different-result-for-function-resolution-on-mingw64-and-msvc[/url]