[PATCH] Proposed change to the constructor of std::pair
Matt Calabrese
rivorus at gmail.com
Tue Feb 3 13:05:39 PST 2015
On Tue, Feb 3, 2015 at 12:29 PM, Marshall Clow <mclow.lists at gmail.com>
wrote:
> This would be an ABI break (changing the default constructor from a plain
> function to a template) if it wasn't marked as "always inline". This means
> that the constructor never gets "called" (the code is just splatted in),
> and hence, no ABI break :-)
>
Is it possible and standards compliant to introduce a [private] base class
that does the SFINAE magic for the constructor? The default constructor of
the child (pair) would then no longer have to be a template. A quick
example:
http://ideone.com/YBKPMp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150203/d87438ff/attachment.html>
More information about the cfe-commits
mailing list