~/lightning

Lightning Talks: -std=c++20 -- Will This C++ Code Compile?

Lightningat CppCon 2022 · 2022-09-11..09-16· [web-platform, typescript]
slides:none on file

Seven concrete portability gotchas for moving to C++20, each with a failing snippet and a fix: new keywords like requires and concept breaking identifier names; reserved identifier rules such as leading underscore followed by capital letters colliding with the standard library; filesystem u8_string changing its return type so std::string assignments fail; removed allocator members like construct/destroy; aggregate initialization breaking when a constructor is deleted; redundant template-id angle brackets; and std::accumulate moving its first argument.

AI-written summary · about

  1. 0:00Intro
  2. 0:24Slides
  3. 0:40Using Reserved Keywords
  4. 1:07Using Reserved Identifiers
  5. 1:36U8String Compatibility
  6. 2:11redundant and allowed template IDs
  7. 2:41aggregate initialization
  8. 3:39removed methods
  9. 4:17stand accumulate
~/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.