Add notes, closes #2266, closes #2267

pull/2273/head
Herb Sutter 9 months ago
parent 39097e3f85
commit 177b50eced

@ -12008,7 +12008,7 @@ I got
3.29048e-321 666 666
Surprised? I'm just glad I didn't crash the program.
Surprised? It is actually undefined behavior, and so could also have crashed the program.
##### Note
@ -20768,6 +20768,10 @@ Splitting initialization into two leads to weaker invariants,
more complicated code (having to deal with semi-constructed objects),
and errors (when we didn't deal correctly with semi-constructed objects consistently).
##### Note
Sometimes also called two-stage construction.
##### Example, bad
// Old conventional style: many problems

Loading…
Cancel
Save