From 2f589c7814ddc3971a023eb64a210da399362b45 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 3 Mar 2019 15:22:22 +0200 Subject: [PATCH] Make default constructors of some test types noexcept --- test/variant_copy_assign_throw.cpp | 4 ++-- test/variant_move_assign_throw.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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&&) {