~/talk

“Programming with C++ Constraints: Background, Utility, and Gotchas"

Talkat CppCon 2017 · 2017-09-24..09-29· [compilers-and-language-design]
links:none on file
slides:none on file

Claims that C++ will adopt compile-time constraints via requires-clauses and that they integrate with existing tools like enable_if and constexpr if. Demonstrates by reimplementing std::swap two ways and running vendor test suites: the enable_if version passes but the requires version triggers a single unexpected failing is_swappable test. Root cause is subsumption changing overload partial ordering, so the requires-based implementation compiles differently — a small, detectable semantic difference.

AI-written summary · about

  1. 0:00Introduction
  2. 1:56The Bigger Picture
  3. 4:07Precondition
  4. 11:08Newer technologies
  5. 14:16Premodern constraints
  6. 17:41Specialization constraints
  7. 19:56Template declaration
  8. 24:31Enable if
  9. 26:39Limitations of Enable if
  10. 28:00Modern postmodern constraints
  11. 30:27Concepts
  12. 32:25Technical Details
  13. 37:44Programming withConstraints
  14. 41:45Case Study
  15. 47:38Enable Lift
  16. 49:27Swappable
  17. 52:47Requires
  18. 54:13Quick caveat
  19. 55:01C Core Language Constraints
~/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.