質問編集履歴
3
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -81,29 +81,3 @@
|
|
81
81
|
vc++ latest(c++20)
|
82
82
|
|
83
83
|
最適化off
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
## 追記(修正)
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
デストラクタを忘れていました
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
```cpp
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
struct A {
|
100
|
-
|
101
|
-
virtual ~A() = default;//ここ
|
102
|
-
|
103
|
-
virtual void hoge() = 0;
|
104
|
-
|
105
|
-
};
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
```
|
2
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,6 +19,8 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
struct A {
|
22
|
+
|
23
|
+
virtual ~A() = default;
|
22
24
|
|
23
25
|
virtual void hoge() = 0;
|
24
26
|
|
1
syuusei
test
CHANGED
File without changes
|
test
CHANGED
@@ -79,3 +79,29 @@
|
|
79
79
|
vc++ latest(c++20)
|
80
80
|
|
81
81
|
最適化off
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
## 追記(修正)
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
デストラクタを忘れていました
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
```cpp
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
struct A {
|
98
|
+
|
99
|
+
virtual ~A() = default;//ここ
|
100
|
+
|
101
|
+
virtual void hoge() = 0;
|
102
|
+
|
103
|
+
};
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
```
|