http://llvm.org/bugs/show_bug.cgi?id=20175
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Richard Smith <[email protected]> --- The candidates for this call: d.out(s, l); are: 1) int derived::out(int s, const char &w) 2) auto decorator<Aut>::out(Args&&... args) -> decltype(a_.out(args...)) [Aut = base<std::pair<char, char>>, Args = {int&, char&}] Both overload candidates are viable. The second is preferred, because it is a better match for the second parameter (a char lvalue prefers a 'char&' parameter over a 'const char&' parameter) and is no worse on the first parameter (an int lvalue is equally happy with an 'int' parameter or an 'int&' parameter). So #2 is called. If you think something else should have happened here, please reopen this bug and explain what you think should have happened and why. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
