]> granicus.if.org Git - clang/commit
Tweak the partial ordering rules for function templates to prefer a
authorDouglas Gregor <dgregor@apple.com>
Sun, 16 Jan 2011 16:03:23 +0000 (16:03 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 16 Jan 2011 16:03:23 +0000 (16:03 +0000)
commit9da95e6eefc4b0ca25e18bdab1b703f5c185deab
tree65fc8cce902d8df09c8c95a1d1a11de89288423a
parent657ca6683d754c903026221a3aa3aa9cedb7556f
Tweak the partial ordering rules for function templates to prefer a
non-variadic function template over a variadic one. This matches GCC
and the intent of the C++0x wording, in a way that I think is likely
to be acceptable to the committee.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123581 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp