~/talk

Concepts As She Is Spoke

Talkat CppCon 2018 · 2018-09-23..09-28· [compilers-and-language-design]
slides:none on file

Clear-eyed tour of C++2a Concepts syntax and semantics, with concrete compiler status (GCC supports the Concepts TS via -fconcepts, Clang has a fork, MSVC largely ignores concepts), side-by-side Godbolt demos, and practical rewrites from enable_if to requires clauses. Covers risky, testable issues: requires clauses don't mangle names (ODR/linker trouble for constrained vs unconstrained templates), the difference between requires expressions vs requires clauses, terse-parameter syntax and common gotchas (missing braces, sizeof misunderstandings), plus how ranges TS and normal-form/subsumption rules affect overload resolution.

AI-written summary · about

  1. 0:00Intro
  2. 1:54Outline
  3. 2:47What's the state of Concepts?
  4. 5:16What is a concept, anyway?
  5. 8:37Defining a concept (old-school)
  6. 12:24requires clauses aren't template parameters
  7. 15:16Duplicate function templates are OK
  8. 15:34Different story with class templates
  9. 16:35Remember this old-school trap?
  10. 20:09Two distinct "better match" criteria
  11. 24:38Constraints are logical formulas!
  12. 25:19Normalization and normal form
  13. 26:22Logical operations are commutative
  14. 26:50Non-atomic concepts
  15. 34:35Noexcept-expression vs. clause
  16. 36:46Kinds of requirements
  17. 38:25GCC (not C++2a) supports auto
  18. 38:57Fun traps for the unwary
  19. 40:17Minor traps for the unwary
  20. 45:38Perfect forwarding?
  21. 48:15Terse syntax(es)
  22. 50:58Non-type concepts
  23. 51:21Metaprogramming with concepts
  24. 51:45Multi-parameter concepts
  25. 55:05Constrained non-template functions?
~/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.