~/talk

My Temporary Materialization Misconception

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
links:none on file
slides:none on file

Sees C++17 elision failing: constructing a vector of unique_ptr<Dispatcher> triggers many unexpected move (and sometimes copy) constructor calls when objects are created with make_unique with perfect forwarding. Reproduces with a non-copyable dispatcher type with complex move semantics, isolates the culprit to temporary materialization that happens on binding a reference to a prvalue, and notes P527 as a possible future fix.

AI-written summary · about

  1. 0:00Start
  2. 0:38Temporary Materialization - what it is
  3. 1:15C++17 Value Categories
  4. 3:26Let's go simple
  5. 4:13When does materialization occur?
  6. 4:51Don't do what I did, do as they say
~/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.