Skip to content

Commit 177b50e

Browse files
committed
Add notes, closes #2266, closes #2267
1 parent 39097e3 commit 177b50e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CppCoreGuidelines.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -12008,7 +12008,7 @@ I got
1200812008

1200912009
3.29048e-321 666 666
1201012010

12011-
Surprised? I'm just glad I didn't crash the program.
12011+
Surprised? It is actually undefined behavior, and so could also have crashed the program.
1201212012

1201312013
##### Note
1201412014

@@ -20768,6 +20768,10 @@ Splitting initialization into two leads to weaker invariants,
2076820768
more complicated code (having to deal with semi-constructed objects),
2076920769
and errors (when we didn't deal correctly with semi-constructed objects consistently).
2077020770

20771+
##### Note
20772+
20773+
Sometimes also called two-stage construction.
20774+
2077120775
##### Example, bad
2077220776

2077320777
// Old conventional style: many problems

0 commit comments

Comments
 (0)