On Tue, Feb 3, 2015 at 12:29 PM, Marshall Clow <[email protected]>
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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to