~/talk

Type Deduction and Why You Care

Talkat CppCon 2014 · on Monday, 2014-09-08· at 09:15· Fermat· [typescript]
links:none on file
slides:none on file

Covers how C++11/14 actually deduce types: three template-based patterns plus universal references and special rules for auto vs decltype(auto), lambda init‑captures and braced initializers. Demonstrates diagnostics: a TD trick that forces compiler error to show deduced types and runtime introspection using boost.typeindex. Calls out a real incompatibility (proposal N3922) that makes braced‑init behavior a breaking change on some compilers and explains the surprising const retention for by‑value lambda captures.

AI-written summary · about

  1. 0:00Start
  2. 6:15The C++ Type Deduction Landscape
  3. 12:08Non-Ref Reference Pointer Parameters
  4. 13:28Non-URef Reference Pointer Parameters
  5. 16:44Yawn
  6. 17:04Universal References
  7. 21:25By-Value Parameters
  8. 29:29auto Type Deduction
  9. 38:25Lambda Capture Type Deduction
  10. 43:17Gratuitous Animal Photo
  11. 43:36Observing Deduced Types
  12. 52:32decltype Type Deduction
  13. 58:07Function Return Type Deduction
~/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.