mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix C.127 example (#1775)
- fix for D being abstract but trying to create an object of type D in make_unique<D>()
This commit is contained in:
parent
de20b33dab
commit
211f6cfe3a
|
@ -7144,6 +7144,7 @@ A class with a virtual function is usually (and in general) used via a pointer t
|
|||
// bad: derived from a class without a virtual destructor
|
||||
struct D : B {
|
||||
string s {"default"};
|
||||
// ...
|
||||
};
|
||||
|
||||
void use()
|
||||
|
|
Loading…
Reference in New Issue
Block a user