mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user