@@ -447,7 +447,7 @@ TEST_CASE("ThreadPool: Test Exceptions", "[threadpool][exceptions]") {
447
447
results.push_back (pool.execute ([&result]() {
448
448
auto tmp = result++;
449
449
if (tmp == 13 ) {
450
- throw ( std::string (" Unripe banana" ) );
450
+ throw std::exception (" Unripe banana" );
451
451
}
452
452
}));
453
453
}
@@ -479,10 +479,10 @@ TEST_CASE("ThreadPool: Test Exceptions", "[threadpool][exceptions]") {
479
479
results.push_back (pool.execute ([&result]() {
480
480
auto tmp = result++;
481
481
if (tmp == 13 ) {
482
- throw ( std::string (" Unripe banana" ) );
482
+ throw std::string (" Unripe banana" );
483
483
}
484
484
if (tmp == 31 ) {
485
- throw ( Status_TileError ( " Unbaked potato" ) );
485
+ throw std::exception ( " Unbaked potato" );
486
486
}
487
487
}));
488
488
}
@@ -500,10 +500,10 @@ TEST_CASE("ThreadPool: Test Exceptions", "[threadpool][exceptions]") {
500
500
results.push_back (pool.execute ([&result]() {
501
501
auto tmp = result++;
502
502
if (tmp == 31 ) {
503
- throw ( std::string (" Unripe banana" ) );
503
+ throw std::string (" Unripe banana" );
504
504
}
505
505
if (tmp == 13 ) {
506
- throw ( Status_TileError ( " Unbaked potato" ) );
506
+ throw std::exception ( " Unbaked potato" );
507
507
}
508
508
}));
509
509
}
@@ -521,10 +521,10 @@ TEST_CASE("ThreadPool: Test Exceptions", "[threadpool][exceptions]") {
521
521
results.push_back (pool.execute ([i, &result]() {
522
522
result++;
523
523
if (i == 13 ) {
524
- throw ( std::string (" Unripe banana" ) );
524
+ throw std::exception (" Unripe banana" );
525
525
}
526
526
if (i == 31 ) {
527
- throw ( Status_TileError ( " Unbaked potato" ) );
527
+ throw std::exception ( " Unbaked potato" );
528
528
}
529
529
}));
530
530
}
@@ -542,10 +542,10 @@ TEST_CASE("ThreadPool: Test Exceptions", "[threadpool][exceptions]") {
542
542
results.push_back (pool.execute ([i, &result]() {
543
543
++result;
544
544
if (i == 31 ) {
545
- throw (std::string (" Unripe banana" ));
545
+ throw (std::exception (" Unripe banana" ));
546
546
}
547
547
if (i == 13 ) {
548
- throw ( Status_TileError ( " Unbaked potato" ) );
548
+ throw std::exception ( " Unbaked potato" );
549
549
}
550
550
}));
551
551
}
0 commit comments