~/talk

The Static Initialization Order Fiasco

Talkat Meeting C++ 2020 · 2020-11-12..11-14· [rust]
links:none on file
slides:none on file

Explains the static initialization order fiasco in C++: why objects with static storage duration across translation units can be initialized in an undefined order, causing bugs. Describes the problem's mechanics and shows common techniques to avoid it, such as using function-local statics (construct on first use) and other initialization patterns, with references to slides and a C++ survey.

AI-written summary · about

  1. 0:00Static Initialization Order Fiasco
  2. 4:13Lifetime and construction
  3. 14:18Dynamic vs static init
  4. 22:50Global object impacts
  5. 30:20Solutions and best practices
  6. 38:02Summary
~/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.