teak-llvm/libcxx/test/std/utilities/tuple/tuple.tuple
Eric Fiselier cb0d4df974 [libcxx] Re-implement LWG 2770 again: Fix tuple_size to work with structured bindings
Summary:
This patch attempts to re-implement a fix for LWG 2770, but not the actual specified PR. 

The PR for 2770 specifies tuple_size<T const> as only conditionally providing a `::value` member. However C++17 structured bindings require `tuple_size<T const>` to be complete only if  `tuple_size<T>` is also complete. Therefore this patch implements only provides the specialization `tuple_size<T CV>` iff `tuple_size<T>` is a complete type.

This fixes http://llvm.org/PR31513.

Reviewers: mclow.lists, rsmith, mpark

Subscribers: mpark, cfe-commits

Differential Revision: https://reviews.llvm.org/D28222

llvm-svn: 291019
2017-01-04 22:38:46 +00:00
..
tuple.apply [libcxx] [test] Add LIBCPP_ASSERT_NOEXCEPT/LIBCPP_ASSERT_NOT_NOEXCEPT, remove an unused variable. 2016-12-09 19:53:08 +00:00
tuple.assign Revert r289727 due to PR31384 2016-12-15 06:34:54 +00:00
tuple.cnstr Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
tuple.creation [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER. 2016-11-04 20:26:59 +00:00
tuple.elem [libcxx] [test] D27266: Remove spurious semicolons. 2016-12-06 01:14:06 +00:00
tuple.helper [libcxx] Re-implement LWG 2770 again: Fix tuple_size to work with structured bindings 2017-01-04 22:38:46 +00:00
tuple.rel [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 4/7. 2016-12-08 21:38:23 +00:00
tuple.special [libcxx] Mark most tuple tests UNSUPPORTED for c++03 and c++98. 2015-02-19 02:10:42 +00:00
tuple.swap [libcxx] Mark most tuple tests UNSUPPORTED for c++03 and c++98. 2015-02-19 02:10:42 +00:00
tuple.traits [libcxx] Mark most tuple tests UNSUPPORTED for c++03 and c++98. 2015-02-19 02:10:42 +00:00
alloc_first.h
alloc_last.h
empty_member.pass.cpp [libcxx] Mark most tuple tests UNSUPPORTED for c++03 and c++98. 2015-02-19 02:10:42 +00:00
TupleFunction.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00