diff --git a/test/variant_copy_assign_throw.cpp b/test/variant_copy_assign_throw.cpp index 3b39cfb..7f98f70 100644 --- a/test/variant_copy_assign_throw.cpp +++ b/test/variant_copy_assign_throw.cpp @@ -14,7 +14,7 @@ using namespace boost::variant2; struct Y1 { - Y1(){} // =default fails on msvc-14.0 + Y1() noexcept {} // =default fails on msvc-14.0 Y1(Y1 const&) { @@ -26,7 +26,7 @@ struct Y1 struct Y2 { - Y2(){} + Y2() noexcept {} Y2(Y2 const&) { diff --git a/test/variant_move_assign_throw.cpp b/test/variant_move_assign_throw.cpp index 59b3b8e..6e65518 100644 --- a/test/variant_move_assign_throw.cpp +++ b/test/variant_move_assign_throw.cpp @@ -14,7 +14,7 @@ using namespace boost::variant2; struct Y1 { - Y1(){} // =default fails on msvc-14.0 + Y1() noexcept {} // =default fails on msvc-14.0 Y1(Y1&&) { @@ -26,7 +26,7 @@ struct Y1 struct Y2 { - Y2(){} + Y2() noexcept {} Y2(Y2&&) {