The presence of unused ellipsis and default arguments has no effect
on the partial ordering of function templates.
[Example:
template<class T> void f(T); // #1
template<class T> void f(T*, int=1); // #2
template<class T> void g(T); // #3
template<class T> void g(T*, ...); // #4
int main() {
int* ip;
f(ip); // calls #2
g(ip); // calls #4
}
I am unable to understand the above point and example. Can any one explain with another example..for this same statement ..
This is the statement from ISO C++ Standard. section :14.5.5.2 Partial ordering of function templates ...Point 6 Can any one explain this? Otherwise, explain with another example