Closed
Description
From this SO answer, the example in [temp.func.order]/5:
template<class T, class... U> void f(T, U...); // #1
template<class T > void f(T); // #2
template<class T, class... U> void g(T*, U...); // #3
template<class T > void g(T); // #4
void h(int i) {
f(&i); // error: ambiguous
g(&i); // OK: calls #3
}
is incompatible with [temp.deduct.partial]/11. f(&i)
should call #2.
Metadata
Metadata
Assignees
Labels
No labels