From e49576014077d4080f51a56799fca0bdf9dbb522 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Fri, 11 Jan 2019 21:57:12 +0000 Subject: [PATCH] Change from a to a . Fixes PR#39871. llvm-svn: 350972 --- libcxx/include/__tuple | 18 +++++++++--------- libcxx/include/array | 4 ++-- libcxx/include/tuple | 4 ++-- libcxx/include/utility | 4 ++-- .../tuple.helper/tuple_size_incomplete.fail.cpp | 8 ++++---- .../tuple.helper/tuple_size_incomplete.pass.cpp | 4 ++-- .../tuple_size_structured_bindings.pass.cpp | 4 ++-- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libcxx/include/__tuple b/libcxx/include/__tuple index 69d6ee9..3b23d78 100644 --- a/libcxx/include/__tuple +++ b/libcxx/include/__tuple @@ -22,36 +22,36 @@ _LIBCPP_BEGIN_NAMESPACE_STD -template class _LIBCPP_TEMPLATE_VIS tuple_size; +template struct _LIBCPP_TEMPLATE_VIS tuple_size; #if !defined(_LIBCPP_CXX03_LANG) template using __enable_if_tuple_size_imp = _Tp; template -class _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< +struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< const _Tp, typename enable_if::value>::type, integral_constant)>>> : public integral_constant::value> {}; template -class _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< +struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< volatile _Tp, typename enable_if::value>::type, integral_constant)>>> : public integral_constant::value> {}; template -class _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< +struct _LIBCPP_TEMPLATE_VIS tuple_size<__enable_if_tuple_size_imp< const volatile _Tp, integral_constant)>>> : public integral_constant::value> {}; #else -template class _LIBCPP_TEMPLATE_VIS tuple_size : public tuple_size<_Tp> {}; -template class _LIBCPP_TEMPLATE_VIS tuple_size : public tuple_size<_Tp> {}; -template class _LIBCPP_TEMPLATE_VIS tuple_size : public tuple_size<_Tp> {}; +template struct _LIBCPP_TEMPLATE_VIS tuple_size : public tuple_size<_Tp> {}; +template struct _LIBCPP_TEMPLATE_VIS tuple_size : public tuple_size<_Tp> {}; +template struct _LIBCPP_TEMPLATE_VIS tuple_size : public tuple_size<_Tp> {}; #endif template class _LIBCPP_TEMPLATE_VIS tuple_element; @@ -165,7 +165,7 @@ template class _LIBCPP_TEMPLATE_VIS tuple; template struct __tuple_like > : true_type {}; template -class _LIBCPP_TEMPLATE_VIS tuple_size > +struct _LIBCPP_TEMPLATE_VIS tuple_size > : public integral_constant { }; @@ -291,7 +291,7 @@ public: template -class _LIBCPP_TEMPLATE_VIS tuple_size<__tuple_types<_Tp...> > +struct _LIBCPP_TEMPLATE_VIS tuple_size<__tuple_types<_Tp...> > : public integral_constant { }; diff --git a/libcxx/include/array b/libcxx/include/array index 8f4e111..56f6887 100644 --- a/libcxx/include/array +++ b/libcxx/include/array @@ -91,7 +91,7 @@ template template void swap(array& x, array& y) noexcept(noexcept(x.swap(y))); // C++17 -template class tuple_size; +template struct tuple_size; template class tuple_element; template struct tuple_size>; template struct tuple_element>; @@ -430,7 +430,7 @@ swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y) } template -class _LIBCPP_TEMPLATE_VIS tuple_size > +struct _LIBCPP_TEMPLATE_VIS tuple_size > : public integral_constant {}; template diff --git a/libcxx/include/tuple b/libcxx/include/tuple index 2e54a5f..4cc6903 100644 --- a/libcxx/include/tuple +++ b/libcxx/include/tuple @@ -84,8 +84,8 @@ template constexpr T make_from_tuple(Tuple&& t); // C++17 // 20.4.1.4, tuple helper classes: -template class tuple_size; // undefined -template class tuple_size>; +template struct tuple_size; // undefined +template struct tuple_size>; template inline constexpr size_t tuple_size_v = tuple_size::value; // C++17 template class tuple_element; // undefined diff --git a/libcxx/include/utility b/libcxx/include/utility index fb7f447..3fa0bc4c 100644 --- a/libcxx/include/utility +++ b/libcxx/include/utility @@ -103,7 +103,7 @@ swap(pair& x, pair& y) noexcept(noexcept(x.swap(y))); struct piecewise_construct_t { }; inline constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t(); -template class tuple_size; +template struct tuple_size; template class tuple_element; template struct tuple_size >; @@ -683,7 +683,7 @@ make_pair(_T1 __x, _T2 __y) #endif // _LIBCPP_CXX03_LANG template - class _LIBCPP_TEMPLATE_VIS tuple_size > + struct _LIBCPP_TEMPLATE_VIS tuple_size > : public integral_constant {}; template diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.fail.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.fail.cpp index 8180018..05ff8a4 100644 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.fail.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.fail.cpp @@ -12,7 +12,7 @@ // template class tuple; // template -// class tuple_size> +// struct tuple_size> // : public integral_constant { }; // UNSUPPORTED: c++98, c++03 @@ -26,19 +26,19 @@ struct Dummy2 {}; struct Dummy3 {}; template <> -class std::tuple_size { +struct std::tuple_size { public: static size_t value; }; template <> -class std::tuple_size { +struct std::tuple_size { public: static void value() {} }; template <> -class std::tuple_size {}; +struct std::tuple_size {}; int main() { diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.pass.cpp index ccdd48e..c4f2e52 100644 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.pass.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_incomplete.pass.cpp @@ -12,7 +12,7 @@ // template class tuple; // template -// class tuple_size> +// struct tuple_size> // : public integral_constant { }; // XFAIL: gcc-4.9 @@ -31,7 +31,7 @@ struct Dummy1 {}; struct Dummy2 {}; namespace std { -template <> class tuple_size : public integral_constant {}; +template <> struct tuple_size : public integral_constant {}; } template diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_structured_bindings.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_structured_bindings.pass.cpp index 03fb78c..a18b9fc 100644 --- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_structured_bindings.pass.cpp +++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.helper/tuple_size_structured_bindings.pass.cpp @@ -12,7 +12,7 @@ // template class tuple; // template -// class tuple_size> +// struct tuple_size> // : public integral_constant { }; // UNSUPPORTED: c++98, c++03, c++11, c++14 @@ -129,7 +129,7 @@ void test_before_tuple_size_specialization() { } template <> -class std::tuple_size { +struct std::tuple_size { public: static const size_t value = 1; }; -- 2.7.4