Fix for PR 19616: 'tuple_cat of nested tuples fails in noexcept specification'. Thanks to Louis Dionne for the fix.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@219243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2014-10-07 21:42:12 +00:00
parent 4c88839716
commit df9722ecf1
3 changed files with 43 additions and 7 deletions

View File

@@ -213,4 +213,18 @@ int main()
assert(std::get<3>(t3) == 4);
assert(std::get<4>(t3) == 5);
}
{
// See bug #19616.
auto t1 = std::tuple_cat(
std::make_tuple(std::make_tuple(1)),
std::make_tuple()
);
assert(t1 == std::make_tuple(std::make_tuple(1)));
auto t2 = std::tuple_cat(
std::make_tuple(std::make_tuple(1)),
std::make_tuple(std::make_tuple(2))
);
assert(t2 == std::make_tuple(std::make_tuple(1), std::make_tuple(2)));
}
}