[PATCH] D13795: Prefer functions with true enable_if conditions when attempting to resolve the address of an overload

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 15 17:52:36 PDT 2015


rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.

Looks great, thanks!


================
Comment at: lib/Sema/SemaOverload.cpp:8413-8414
@@ +8412,4 @@
+// Cand1's first N enable_if attributes have precisely the same conditions as
+// Cand2's first N enable_if attributes (where N = the number of enable_if
+// attributes on Cand2)
+static bool hasBetterEnableIfAttrs(Sema &S, const FunctionDecl *Cand1,
----------------
... and Cand1 has more than N enable_if attributes.


http://reviews.llvm.org/D13795





More information about the cfe-commits mailing list