~/talk

Back to Basics: The C++ Core Guidelines

Talkat CppCon 2022 · 2022-09-11..09-16· [rust]
slides:none on file

Claims that the Core Guidelines boil down to concrete rules for interfaces, functions, classes, concurrency and templates and lists 350 rules (roughly 600–700 pages). Recommends explicit constructors, RAII, rule-of-zero/ six, prefer strong types, enum class, move semantics, std::vector/array, and smart pointers to model ownership because pointers broken by design. Demonstrates a real data race and shows detection with -fsanitize=thread (sanitizers in GCC/Clang), and notes the Guideline Support Library for automated checks.

AI-written summary · about

  1. 0:00C++ Core Guidelines intro
  2. 1:49Why C++ Core Guidelines matter
  3. 5:24Guidelines structure and challenges
  4. 7:14Designing safe interfaces
  5. 8:36Parameter passing in C++
  6. 11:11Ownership with pointers
  7. 13:24Transferring ownership
  8. 15:10Structs vs classes
  9. 16:57Regular types and rule of six
  10. 19:05Defaulting special members
  11. 21:54Explicit constructors
  12. 22:17Destructors necessity
  13. 23:42Base class destructors
  14. 33:06Scoped enums in C++11
  15. 35:29RAII idioms
  16. 38:00Good naming in C++
  17. 39:28Avoid unsigned arithmetic
  18. 41:17Performance optimization
  19. 43:46Measuring bottlenecks
  20. 44:30Move semantics and constexpr
  21. 45:54Concurrency with std::jthread
  22. 50:17Threading issues with sanitizers
  23. 53:23Error handling
  24. 54:25When to use templates
  25. 55:50Template deduction and constraints
  26. 56:32Array vs vector vs string
  27. 57:37Final thoughts and resources
  28. 1:00:13Q&A on C++20 spaceship
~/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.