~/talk

When C++ Style Guides Contradict

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
slides:none on file

C++ style guides give conflicting, actionable rules: some require hidden friends to avoid accidental implicit conversions (a real bug in path operators that gets fixed in C++20), others insist on non‑member non‑friend operators; core guidelines and Google disagree on brace initialization while a team of 200 adopters finds uniform braces reduce errors; MISRA forces default cases that -Wswitch warns against; the rule “use exactly one of virtual override final” breaks when a base must forbid overrides, so practical tradeoffs and tool warnings drive what actually works.

AI-written summary · about

  1. 0:00Intro
  2. 0:36The problem
  3. 4:13Why
  4. 7:58Tools
  5. 13:05Uniform initialization
  6. 14:15Standard guidelines
  7. 15:45Uniform direct initialization
  8. 16:32Hidden France
  9. 20:57Friends
  10. 22:12Hidden Friends
  11. 25:49Explicit
  12. 29:30Misra
  13. 34:11Final example
  14. 34:28Virtual override and final
  15. 35:11Final override
  16. 43:00Gas target
  17. 46:40What should we teach
~/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.