<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 3, 2015 at 12:29 PM, Marshall Clow <span dir="ltr"><<a href="mailto:mclow.lists@gmail.com" target="_blank">mclow.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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 :-)<br></blockquote><div><br></div><div>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:<br></div><div><br></div><div><a href="http://ideone.com/YBKPMp">http://ideone.com/YBKPMp</a></div></div>
</div></div>