mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
NR.5: note that example is incomplete (closes #1643)
This commit is contained in:
@@ -20353,6 +20353,8 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste
|
|||||||
Cleanup();
|
Cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ...
|
||||||
|
|
||||||
// bad: two-phase initialization
|
// bad: two-phase initialization
|
||||||
bool Init()
|
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)
|
// compiler generated dtor does the job. (also see C.21)
|
||||||
|
|
||||||
|
// ...
|
||||||
};
|
};
|
||||||
|
|
||||||
Picture picture1(100, 100);
|
Picture picture1(100, 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user