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:
5chmidti 2021-05-13 20:39:14 +02:00 committed by GitHub
parent de20b33dab
commit 211f6cfe3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()