Программы на C++. Форум разработчиков
-
Anonymous
Различный результат для разрешения функций на Mingw64 и MSVC
Сообщение
Anonymous »
Код: Выделить всё
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]
1745663518
Anonymous
[code]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]