@@ -18,10 +18,10 @@ version (CppRuntime_DigitalMars)
18
18
import core.stdcpp.exception ;
19
19
20
20
extern (C++ , " std" ):
21
- @nogc :
22
21
23
22
class type_info
24
23
{
24
+ @nogc :
25
25
void * pdata;
26
26
27
27
public :
@@ -41,17 +41,19 @@ version (CppRuntime_DigitalMars)
41
41
42
42
class bad_cast : exception
43
43
{
44
- this () nothrow { }
45
- this (const bad_cast) nothrow { }
44
+ @nogc :
45
+ extern (D ) this () nothrow { }
46
+ extern (D ) this (const bad_cast) nothrow { }
46
47
// bad_cast operator=(const bad_cast) nothrow { return this; }
47
48
// virtual ~this() nothrow;
48
49
override const (char )* what () const nothrow ;
49
50
}
50
51
51
52
class bad_typeid : exception
52
53
{
53
- this () nothrow { }
54
- this (const bad_typeid) nothrow { }
54
+ @nogc :
55
+ extern (D ) this () nothrow { }
56
+ extern (D ) this (const bad_typeid) nothrow { }
55
57
// bad_typeid operator=(const bad_typeid) nothrow { return this; }
56
58
// virtual ~this() nothrow;
57
59
override const (char )* what() const nothrow ;
@@ -62,7 +64,6 @@ else version (CppRuntime_Microsoft)
62
64
import core.stdcpp.exception ;
63
65
64
66
extern (C++ , " std" ):
65
- @nogc :
66
67
67
68
struct __type_info_node
68
69
{
@@ -74,6 +75,7 @@ else version (CppRuntime_Microsoft)
74
75
75
76
class type_info
76
77
{
78
+ @nogc :
77
79
@weak ~this () nothrow {}
78
80
// bool operator==(const type_info rhs) const;
79
81
// bool operator!=(const type_info rhs) const;
@@ -88,13 +90,15 @@ else version (CppRuntime_Microsoft)
88
90
89
91
class bad_cast : exception
90
92
{
91
- this (const (char )* msg = " bad cast" ) @nogc nothrow { super (msg); }
93
+ @nogc :
94
+ extern (D ) this (const (char )* msg = " bad cast" ) nothrow { super (msg); }
92
95
// virtual ~this();
93
96
}
94
97
95
98
class bad_typeid : exception
96
99
{
97
- this (const (char )* msg = " bad typeid" ) @nogc nothrow { super (msg); }
100
+ @nogc :
101
+ extern (D ) this (const (char )* msg = " bad typeid" ) nothrow { super (msg); }
98
102
// virtual ~this();
99
103
}
100
104
}
@@ -108,10 +112,10 @@ else version (CppRuntime_Gcc)
108
112
}
109
113
110
114
extern (C++ , " std" ):
111
- @nogc :
112
115
113
116
abstract class type_info
114
117
{
118
+ @nogc :
115
119
@weak ~this () {}
116
120
@weak final const (char )* name() const nothrow
117
121
{
@@ -133,19 +137,21 @@ else version (CppRuntime_Gcc)
133
137
protected :
134
138
const (char )* _name;
135
139
136
- this (const (char )* name) { _name = name; }
140
+ extern ( D ) this (const (char )* name) { _name = name; }
137
141
}
138
142
139
143
class bad_cast : exception
140
144
{
141
- this () nothrow {}
145
+ @nogc :
146
+ extern (D ) this () nothrow {}
142
147
// ~this();
143
148
@weak override const (char )* what() const nothrow { return " bad cast" ; }
144
149
}
145
150
146
151
class bad_typeid : exception
147
152
{
148
- this () nothrow {}
153
+ @nogc :
154
+ extern (D ) this () nothrow {}
149
155
// ~this();
150
156
@weak override const (char )* what() const nothrow { return " bad typeid" ; }
151
157
}
@@ -155,10 +161,10 @@ else version (CppRuntime_Clang)
155
161
import core.stdcpp.exception ;
156
162
157
163
extern (C++ , " std" ):
158
- @nogc :
159
164
160
165
abstract class type_info
161
166
{
167
+ @nogc :
162
168
@weak ~this () {}
163
169
@weak final const (char )* name() const nothrow
164
170
{
@@ -173,19 +179,21 @@ else version (CppRuntime_Clang)
173
179
protected :
174
180
const (char )* __type_name;
175
181
176
- this (const (char )* __n) { __type_name = __n; }
182
+ extern ( D ) this (const (char )* __n) { __type_name = __n; }
177
183
}
178
184
179
185
class bad_cast : exception
180
186
{
181
- this () nothrow {}
187
+ @nogc :
188
+ extern (D ) this () nothrow {}
182
189
// ~this();
183
190
@weak override const (char )* what() const nothrow { return " bad cast" ; }
184
191
}
185
192
186
193
class bad_typeid : exception
187
194
{
188
- this () nothrow {}
195
+ @nogc :
196
+ extern (D ) this () nothrow {}
189
197
// ~this();
190
198
@weak override const (char )* what() const nothrow { return " bad typeid" ; }
191
199
}
0 commit comments