[PATCH] __attribute__((enable_if)) and non-overloaded member functions
David Blaikie
dblaikie at gmail.com
Tue May 26 13:37:42 PDT 2015
+Nick, conjurer of the enable_if attribute
On Tue, May 26, 2015 at 1:20 PM, Ettore Speziale <speziale.ettore at gmail.com>
wrote:
> Hello,
>
> 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.
>
> Thanks,
> Ettore Speziale
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150526/a9762ff5/attachment.html>
More information about the cfe-commits
mailing list