Quantcast
Channel: c++ function overloading with Exact Match - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by rahnema1 for c++ function overloading with Exact Match

In overload resolution T* and const T* are considered distinct parameter types.[over.load] 13.1/(3.4):In particular, for any type T, "pointer to T", "pointer to const T", and "pointer to volatile T"...

View Article



Answer by user657267 for c++ function overloading with Exact Match

Both functions require an array-to-pointer conversion, but the first requires an additional qualification conversion.You're correct in saying that both are an Exact Match[over.ics.scs] / 3[...] The...

View Article

c++ function overloading with Exact Match

Can someone explain why the overloading resolution will pick the 2nd function, instead of reporting an ambiguous error. Anyway, the 2nd function is an exact match, but the 1st undergoes a qualification...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images