Make std::tuple_size<cv T> SFINAE-friendly (LWG 2770)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Nov 2016 19:32:44 +0000 (19:32 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 15 Nov 2016 19:32:44 +0000 (19:32 +0000)
commit6ae2ae3b84615e5e4504a1592af6a8d5579f17ca
treeebab8a077030dde507ddca02199aad37580caa05
parent168126e59828b8d2cc8cbb7e03fbe8341177f58f
Make std::tuple_size<cv T> SFINAE-friendly (LWG 2770)

* doc/xml/manual/intro.xml: Document LWG 2770 status. Remove entries
for 2742 and 2748.
* doc/html/*: Regenerate.
* include/std/utility (__tuple_size_cv_impl): New helper to safely
detect tuple_size<T>::value, as per LWG 2770.
(tuple_size<cv T>): Adjust partial specializations to derive from
__tuple_size_cv_impl.
* testsuite/20_util/tuple/cv_tuple_size.cc: Test SFINAE-friendliness.

From-SVN: r242452
libstdc++-v3/ChangeLog
libstdc++-v3/doc/html/manual/bugs.html
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/std/utility
libstdc++-v3/testsuite/20_util/tuple/cv_tuple_size.cc