Subject: Re: [boost] *** GMX Spamverdacht *** Re: [static_if] Is there interest in a `static if` emulation library?
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2014-09-09 10:24:42
On 08 Sep 2014, at 17:45, Sebastian Redl <sebastian.redl_at_[hidden]> wrote:
> Im running out of time trying to trace the history of SFINAE, but I believe it was never intended to allow complicated overload resolution choices, but only to prevent accidental errors.
Only read the below if you are interested in C++ history.
I completed my archeology trip into the WG-21 archives and traced the history of SFINAE as well as I could.
The actual wording for SFINAE came into the standard at pretty much the last second. In the December 1996 draft standard (the one sent out for national body reviews, document number N1043), there is no such thing.
The wording suddenly appears as issue 6.64 with a resolution already in place of the document "Template Issues and Proposed Resolutions, Revision 21", in the pre-Morristown mailing.
And the updated draft in the same mailing, dating 29 September, already has that wording (note that open-std doesn't host this document publically):
In fact, the official document number of that draft is N1117.
It appears that what we now know as SFINAE came into being between the London and Morristown meetings in non-public discussions. Someone with access to the reflector archives might be able to trace it more accurately.
This strongly supports my theory that modern usage of SFINAE is as much an accident as template metaprogramming.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk