From 1c810bcb74a3ca4e1d73ed9bcd47b378fbc7e76a Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Sat, 15 Aug 2015 21:01:12 +0900 Subject: [PATCH] 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. --- test/boost_fusion.cpp | 6 ++++++ test/msgpack_cpp11.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/boost_fusion.cpp b/test/boost_fusion.cpp index eed07c9d..980a2b14 100644 --- a/test/boost_fusion.cpp +++ b/test/boost_fusion.cpp @@ -140,6 +140,11 @@ BOOST_FUSION_ADAPT_STRUCT( f3 // *3 ) +#if !defined(_MSC_VER) + +// boost::fusion's adaptor uses std::tuple. +// MSVC2015's std::tuple requires default constructor during 'as' process. +// I don't know why... TEST(MSGPACK_BOOST, pack_convert_no_def_con) { std::stringstream ss; @@ -151,6 +156,7 @@ TEST(MSGPACK_BOOST, pack_convert_no_def_con) EXPECT_TRUE(val1 == val2); } +#endif // !defined(_MSC_VER) #endif // !defined(MSGPACK_USE_CPP03 diff --git a/test/msgpack_cpp11.cpp b/test/msgpack_cpp11.cpp index d7c6e1c8..b1686a31 100644 --- a/test/msgpack_cpp11.cpp +++ b/test/msgpack_cpp11.cpp @@ -456,6 +456,10 @@ TEST(MSGPACK_NO_DEF_CON_PAIR, simple_buffer) EXPECT_EQ(val1, val2); } +#if !defined(_MSC_VER) + +// MSVC2015's std::tuple requires default constructor during 'as' process. +// I don't know why... TEST(MSGPACK_NO_DEF_CON_TUPLE, simple_buffer) { std::tuple val1 {1, 2, 3}; @@ -480,6 +484,8 @@ TEST(MSGPACK_NO_DEF_CON_MSGPACK_TUPLE, simple_buffer) EXPECT_EQ(val1, val2); } +#endif // !define(_MSC_VER) + TEST(MSGPACK_NO_DEF_FORWARD_LIST, simple_buffer) { std::forward_list val1 { 1, 2, 3 };