Skip to content

Commit 6f32f2b

Browse files
committed
More C++11 fixes
1 parent 8222523 commit 6f32f2b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/unit/tracing/try_catch.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ TEST(TryCatch, CatchOrdering) {
240240

241241
namespace {
242242
struct copy_move_tracker {
243-
inline static int copy = 0;
244-
inline static int move = 0;
243+
static int copy;
244+
static int move;
245245
copy_move_tracker() = default;
246246
copy_move_tracker(const copy_move_tracker&) {
247247
copy++;
@@ -262,6 +262,8 @@ namespace {
262262
move = 0;
263263
}
264264
};
265+
int copy_move_tracker::copy = 0;
266+
int copy_move_tracker::move = 0;
265267
}
266268

267269
TEST(TryCatch, Value) {
@@ -314,8 +316,8 @@ TEST(TryCatch, ConstRef) {
314316

315317
namespace {
316318
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;
319321
copy_move_tracker_callable() = default;
320322
copy_move_tracker_callable(const copy_move_tracker&) {
321323
copy++;
@@ -337,6 +339,8 @@ namespace {
337339
}
338340
void operator()() const {}
339341
};
342+
int copy_move_tracker_callable::copy;
343+
int copy_move_tracker_callable::move;
340344
}
341345

342346
TEST(TryCatch, LvalueCallable) {

0 commit comments

Comments
 (0)