summaryrefslogtreecommitdiffstats
path: root/libcxx/include/tuple
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-02 23:54:13 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-02 23:54:13 +0000
commit1013fe3c0cfd7582e94ef2d4bfd79da7ea1a1289 (patch)
tree570684bb1eddd70784f35953e4b830a73d31a2bc /libcxx/include/tuple
parent9877c1e71387c7a060095e228e1f7a1e65c18e52 (diff)
downloadbcm5719-llvm-1013fe3c0cfd7582e94ef2d4bfd79da7ea1a1289.tar.gz
bcm5719-llvm-1013fe3c0cfd7582e94ef2d4bfd79da7ea1a1289.zip
Re-implement LWG 2770 - Fix tuple_size with structured bindings.
This patch implements the correct PR for LWG 2770. It also makes the primary tuple_size template incomplete again which fixes part of llvm.org/PR31513. llvm-svn: 290846
Diffstat (limited to 'libcxx/include/tuple')
-rw-r--r--libcxx/include/tuple2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/tuple b/libcxx/include/tuple
index 553d8e546f8..2f71cce7413 100644
--- a/libcxx/include/tuple
+++ b/libcxx/include/tuple
@@ -84,7 +84,7 @@ template <class T, class Tuple>
constexpr T make_from_tuple(Tuple&& t); // C++17
// 20.4.1.4, tuple helper classes:
-template <class T> class tuple_size;
+template <class T> class tuple_size; // undefined
template <class... T> class tuple_size<tuple<T...>>;
template <class T>
constexpr size_t tuple_size_v = tuple_size<T>::value; // C++17
OpenPOWER on IntegriCloud