I have this code:
template<
class T = const int &
> void f(T) {}
void f(const int &) {}
int main() {
f(0);
}
Why does it call the second one instead of first? I would think of them as being the same but they're clearly not as I do not get a redefinition error.