~/talk

Back to the basics: Namespaces 101

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [frontend-architecture]
slides:none on file

Covers concrete rules and gotchas: the compiler’s qualified vs unqualified lookup order, how argument dependent lookup (ADL) pulls functions from argument namespaces, and when inline namespaces for versioning actually expose a version as the default. Shows examples where using directives break builds (std::sqrt shadowing), recommends using declarations only in .cpp, anonymous namespaces for translation-unit privacy, avoid using directives in headers, prefer aliases and fully qualify macros, and limit nesting to about four levels.

AI-written summary · about

  1. 0:00Namespaces introduction
  2. 2:11What namespaces solve
  3. 4:02C++ standards evolution
  4. 10:13Namespace mechanics
  5. 21:20Namespace scope rules
  6. 36:26Best practices
  7. 58:38Industry vs guidelines
  8. 59:43Key takeaways
~/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.