Substitution failure is not an error (SFINAE) is a principle in C++ where an invalid substitution of template parameters is not in itself an error. David Vandevoorde first introduced the acronym SFINAE to describe related programming techniques.[1]
Specifically, when creating a candidate set for overload resolution, some (or all) candidates of that set may be the result of instantiated templates with (potentially deduced) template arguments substituted for the corresponding template parameters. If an error occurs during the substitution of a set of arguments for any given template, the compiler removes the potential overload from the candidate set instead of stopping with a compilation error, provided the substitution error is one the C++ standard grants such treatment.[2] If one or more candidates remain and overload resolution succeeds, the invocation is well-formed.
^Vandevoorde, David; Nicolai M. Josuttis (2002). C++ Templates: The Complete Guide. Addison-Wesley Professional. ISBN 0-201-73484-2.
^International Organization for Standardization. "ISO/IEC 14882:2003, Programming languages – C++", § 14.8.2.
and 22 Related for: Substitution failure is not an error information
mistake or scribal error was the equivalent for manuscripts. Most typos involve simple duplication, omission, transposition, or substitution of a small number...
to "normal" C++, with less and less readability penalty. Substitutionfailureisnotanerror (SFINAE) Metaprogramming Preprocessor Parametric polymorphism...
held an atonement theory of penal substitution but, rather, a restorative substitutionary model of the atonement, and that penal substitution was not truly...
RAID 0 provide protection against unrecoverable sector read errors, as well as against failures of whole physical drives. The term "RAID" was invented by...
indicating success or failure when communicating with another IP address. For example, anerroris indicated when a requested service isnot available or that...
Import substitution industrialization (ISI) is a trade and economic policy that advocates replacing foreign imports with domestic production. It is based...
medical erroris a preventable adverse effect of care ("iatrogenesis"), whether or not it is evident or harmful to the patient. This might include an inaccurate...
"serial substitution" can be considered degenerate when components are substituted without regard to a hypothesis concerning how their failure could result...
transposition errors (it does not detect 90 ↔ 09) and the still more sophisticated Verhoeff algorithm (1969), which catches all single-digit substitution and transposition...
with kidney failure, heart failure, or diabetes are not recommended to use salt substitutes without medical advice. LoSalt, a salt substitute manufacturer...
The halo effect (sometimes called the halo error) is the tendency for positive impressions of a person, company, country, brand, or product in one area...
useful value can fail, but the signalling of failure uses an otherwise valid return value. The problem is that the caller of the subroutine cannot tell...
Another notable addition in this version of the AAC standard is Perceptual Noise Substitution (PNS). In that regard, the AAC profiles (AAC-LC, AAC Main and...
an NXDOMAIN response – informing the application that the name is invalid and taking the appropriate action (for example, displaying anerror or not attempting...
that the substitution rate of sites in a gene can change through time. It has been proposed that the positions that show switches in substitution rate over...
procedural errors or equipment failures, and since procedural errors are generally avoidable by a well-trained, intelligent and alert diver, working in an organised...
elaborates upon five types of errors that may lead to an appellate court exercising its own sentencing discretion in substitution for that of the sentencing...
substituted x was supposed to be free but ended up being bound. The correct substitution in this case is λz.x, up to α-equivalence. Substitutionis defined...
important financial institution (SIFI) is a bank, insurance company, or other financial institution whose failure might trigger a financial crisis. They...
include file are not seen more than once. This is more verbose, requires greater manual intervention, and is prone to programmer error as there are no...
the conclusion does not logically follow the premise. Masked-man fallacy (illicit substitution of identicals) – the substitution of identical designators...