Skip to content

Commit 895d709

Browse files
committed
NR.5: note that example is incomplete (closes isocpp#1643)
1 parent c6262ea commit 895d709

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CppCoreGuidelines.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20353,6 +20353,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
2035320353
Cleanup();
2035420354
}
2035520355

20356+
// ...
20357+
2035620358
// bad: two-phase initialization
2035720359
bool Init()
2035820360
{
@@ -20409,6 +20411,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
2040920411
}
2041020412

2041120413
// compiler generated dtor does the job. (also see C.21)
20414+
20415+
// ...
2041220416
};
2041320417

2041420418
Picture picture1(100, 100);

0 commit comments

Comments
 (0)