mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
NR.5: note that example is incomplete (closes #1643)
This commit is contained in:
parent
c6262ea1a8
commit
895d709546
|
@ -20353,6 +20353,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
|
|||
Cleanup();
|
||||
}
|
||||
|
||||
// ...
|
||||
|
||||
// bad: two-phase initialization
|
||||
bool Init()
|
||||
{
|
||||
|
@ -20409,6 +20411,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
|
|||
}
|
||||
|
||||
// compiler generated dtor does the job. (also see C.21)
|
||||
|
||||
// ...
|
||||
};
|
||||
|
||||
Picture picture1(100, 100);
|
||||
|
|
Loading…
Reference in New Issue
Block a user