Answer
This question is compilable and deterministic.
Its output is “1”.
Explanation
The templated function will be instantiated as void f(int&)
, which is a better match than f(const int&)
.
This question is compilable and deterministic.
Its output is “1”.
The templated function will be instantiated as void f(int&)
, which is a better match than f(const int&)
.