~/talk

ADT puzzler

Talkat CppCon 2016 · 2016-09-18..09-23· [c-and-cpp]
slides:none on file

Code shows calling f<0(...) that the compiler parses as f < 0 (a comparison) because the identifier isn’t known as a template, so template argument syntax never applies and ADL doesn’t run. Declaring any template named f beforehand — even a dummy `template<class> struct f;` — makes the parser treat f as a template, then overload lookup and ADL kicks in to find the intended overload. Trying to force it with a local template keyword in non-dependent code is a syntax error (C++17).

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.