~/talk

SFINAE: Substitution Failure Is Not An Error

Talkat C++Now 2018 · 2018-05-06..05-11· [c-and-cpp]
links:none on file
slides:none on file

Explains that SFINAE is lazy and performs substitution in lexical order, stopping at the first failure so later templates never instantiate; shows two otherwise identical overloads that behave differently solely because of parameter order and a static_assert that is not in the immediate context; points out that C++20 concepts check constraints after substitution so they can lose SFINAE friendliness; demonstrates a practical lazy short-circuiting conjunction trait implementation that expands predicates into sequential SFINAE checks and successfully short‑circuits.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.