Add notes, closes #2266, closes #2267
Some checks failed
build / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled

This commit is contained in:
Herb Sutter
2025-04-15 11:02:42 -07:00
parent 39097e3f85
commit 177b50eced

View File

@@ -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