We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c5662 commit d0ba7e0Copy full SHA for d0ba7e0
tests/test_private_first_base.cpp
@@ -28,19 +28,16 @@ struct base {
28
base() : base_id(100) {}
29
virtual ~base() = default;
30
virtual int id() const { return base_id; }
31
- base(const base&) = default;
+ base(const base&) = delete;
32
int base_id;
33
};
34
35
struct private_first_base { // Any class with a virtual function will do.
36
- private_first_base() {}
37
virtual void some_other_virtual_function() const {}
38
virtual ~private_first_base() = default;
39
- private_first_base(const private_first_base&) = default;
40
41
42
struct drvd : private private_first_base, public base {
43
- drvd() {}
44
int id() const override { return 2 * base_id; }
45
46
0 commit comments