Select functions calls that will cause compilation error for the following code:
tеmрlаtе<сlаss Т> vоid f(Т t1, Т t2);
struсt s{s(int);s();};
The function expects two parameters of the same type. In the case when parameters of different types are passed and the template parameter is not specified explicitly, there is an ambiguity which of the two parameters should be casted to the type of the other parameter.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Зарегистрируйся сейчас
или Подпишись на будущие тесты