Skip to content

Commit 1c810bc

Browse files
committed
Removed the tests that contain std::tuple with non default constructible class on MSVC2015.
It seems that MSVC2015 requires tuple elements' default constructor during 'as' process. I don't know why.
1 parent 0fafa7a commit 1c810bc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/boost_fusion.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ BOOST_FUSION_ADAPT_STRUCT(
140140
f3 // *3
141141
)
142142

143+
#if !defined(_MSC_VER)
144+
145+
// boost::fusion's adaptor uses std::tuple.
146+
// MSVC2015's std::tuple requires default constructor during 'as' process.
147+
// I don't know why...
143148
TEST(MSGPACK_BOOST, pack_convert_no_def_con)
144149
{
145150
std::stringstream ss;
@@ -151,6 +156,7 @@ TEST(MSGPACK_BOOST, pack_convert_no_def_con)
151156
EXPECT_TRUE(val1 == val2);
152157
}
153158

159+
#endif // !defined(_MSC_VER)
154160

155161
#endif // !defined(MSGPACK_USE_CPP03
156162

test/msgpack_cpp11.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ TEST(MSGPACK_NO_DEF_CON_PAIR, simple_buffer)
456456
EXPECT_EQ(val1, val2);
457457
}
458458

459+
#if !defined(_MSC_VER)
460+
461+
// MSVC2015's std::tuple requires default constructor during 'as' process.
462+
// I don't know why...
459463
TEST(MSGPACK_NO_DEF_CON_TUPLE, simple_buffer)
460464
{
461465
std::tuple<no_def_con, no_def_con, no_def_con_composite> val1 {1, 2, 3};
@@ -480,6 +484,8 @@ TEST(MSGPACK_NO_DEF_CON_MSGPACK_TUPLE, simple_buffer)
480484
EXPECT_EQ(val1, val2);
481485
}
482486

487+
#endif // !define(_MSC_VER)
488+
483489
TEST(MSGPACK_NO_DEF_FORWARD_LIST, simple_buffer)
484490
{
485491
std::forward_list<no_def_con> val1 { 1, 2, 3 };

0 commit comments

Comments
 (0)