<div dir="ltr">On Sun, Sep 22, 2013 at 3:24 AM, Nick Lewycky <span dir="ltr"><<a href="mailto:nicholas@mxc.ca" target="_blank" class="cremed">nicholas@mxc.ca</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The attached patch adds a new attribute named "enable_if" which takes an expression and a string. At the call site, the arguments are substituted into the enable_if expression (which is written in terms of the parameters) to determine whether this function is a viable candidate.<br>
</blockquote><div><br></div><div>What's the motivation? The C++ committee looked at just such a construct and currently is leaning in a different direction (concepts lite) so it seems odd to add this as an extension to Clang at this point.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Please review!<span class="HOEnZb"><font color="#888888"><br>
<br>
Nick<br>
</font></span><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" class="cremed">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank" class="cremed">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div></div>