File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ TEST(TryCatch, CatchOrdering) {
240
240
241
241
namespace {
242
242
struct copy_move_tracker {
243
- inline static int copy = 0 ;
244
- inline static int move = 0 ;
243
+ static int copy;
244
+ static int move;
245
245
copy_move_tracker () = default ;
246
246
copy_move_tracker (const copy_move_tracker&) {
247
247
copy++;
@@ -262,6 +262,8 @@ namespace {
262
262
move = 0 ;
263
263
}
264
264
};
265
+ int copy_move_tracker::copy = 0 ;
266
+ int copy_move_tracker::move = 0 ;
265
267
}
266
268
267
269
TEST (TryCatch, Value) {
@@ -314,8 +316,8 @@ TEST(TryCatch, ConstRef) {
314
316
315
317
namespace {
316
318
struct copy_move_tracker_callable {
317
- inline static int copy = 0 ;
318
- inline static int move = 0 ;
319
+ static int copy;
320
+ static int move;
319
321
copy_move_tracker_callable () = default ;
320
322
copy_move_tracker_callable (const copy_move_tracker&) {
321
323
copy++;
@@ -337,6 +339,8 @@ namespace {
337
339
}
338
340
void operator ()() const {}
339
341
};
342
+ int copy_move_tracker_callable::copy;
343
+ int copy_move_tracker_callable::move;
340
344
}
341
345
342
346
TEST (TryCatch, LvalueCallable) {
You can’t perform that action at this time.
0 commit comments