Make default constructors of some test types noexcept

This commit is contained in:
Peter Dimov
2019-03-03 15:22:22 +02:00
parent fdfe9df167
commit 2f589c7814
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ using namespace boost::variant2;
struct Y1 struct Y1
{ {
Y1(){} // =default fails on msvc-14.0 Y1() noexcept {} // =default fails on msvc-14.0
Y1(Y1 const&) Y1(Y1 const&)
{ {
@ -26,7 +26,7 @@ struct Y1
struct Y2 struct Y2
{ {
Y2(){} Y2() noexcept {}
Y2(Y2 const&) Y2(Y2 const&)
{ {

View File

@ -14,7 +14,7 @@ using namespace boost::variant2;
struct Y1 struct Y1
{ {
Y1(){} // =default fails on msvc-14.0 Y1() noexcept {} // =default fails on msvc-14.0
Y1(Y1&&) Y1(Y1&&)
{ {
@ -26,7 +26,7 @@ struct Y1
struct Y2 struct Y2
{ {
Y2(){} Y2() noexcept {}
Y2(Y2&&) Y2(Y2&&)
{ {