<div dir="ltr">+Nick, conjurer of the enable_if attribute</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 26, 2015 at 1:20 PM, Ettore Speziale <span dir="ltr"><<a href="mailto:speziale.ettore@gmail.com" target="_blank">speziale.ettore@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
the attached patch fixes the case where __attribute__((enable_if)) is sticked to a member function with no overloads. It seems that in these case clang does not execute the code about overload resolution which contains the check about __attribute__((enable_if)). Hence it would be possible to use a function protected by __attribute__((enable_if)) even if the __attribute__((enable_if)) predicate is false.<br>
<br>
Thanks,<br>
Ettore Speziale<br>
<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>