ToStringTuple - gcc doesn't like tuple init_list ctor

This commit is contained in:
Andy Sawyer 2014-09-04 01:05:51 +01:00
parent 13cbdf7e7d
commit f559a51926

View File

@ -33,7 +33,7 @@ TEST_CASE( "tuple<string,string>", "[toString][tuple]" )
TEST_CASE( "tuple<tuple<int>,tuple<>,float>", "[toString][tuple]" ) TEST_CASE( "tuple<tuple<int>,tuple<>,float>", "[toString][tuple]" )
{ {
typedef std::tuple<std::tuple<int>,std::tuple<>,float> type; typedef std::tuple<std::tuple<int>,std::tuple<>,float> type;
type value { {42}, {}, 1.2f }; type value { std::tuple<int>{42}, {}, 1.2f };
CHECK( "{ { 42 }, { }, 1.2f }" == Catch::toString(value) ); CHECK( "{ { 42 }, { }, 1.2f }" == Catch::toString(value) );
} }