PR libstdc++/82716 avoid stupid -Wmismatched-tags warnings
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Oct 2017 13:55:56 +0000 (14:55 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 25 Oct 2017 13:55:56 +0000 (14:55 +0100)
PR libstdc++/82716
* include/std/array (tuple_size, tuple_element): Change class-key
from class to struct, to avoid annoying Clang warnings.

From-SVN: r254077

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/array

index afc4b7c0048d8197c5772d1e82b828fbf85bb2aa..c6afd51f02c81865185497323ee0288bedb4368a 100644 (file)
@@ -1,5 +1,9 @@
 2017-10-25  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/82716
+       * include/std/array (tuple_size, tuple_element): Change class-key
+       from class to struct, to avoid annoying Clang warnings.
+
        PR libstdc++/79283
        * src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
        * src/filesystem/std-ops.cc (read_symlink): Likewise.
index 1c7d6dc4ab128b1100d51c9271a04e80089dcb6f..f058c0621454d6dd5b3ee123e7c98af5f8978b60 100644 (file)
@@ -339,7 +339,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   /// tuple_size
   template<typename _Tp>
-    class tuple_size;
+    struct tuple_size;
 
   /// Partial specialization for std::array
   template<typename _Tp, std::size_t _Nm>
@@ -348,7 +348,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   /// tuple_element
   template<std::size_t _Int, typename _Tp>
-    class tuple_element;
+    struct tuple_element;
 
   /// Partial specialization for std::array
   template<std::size_t _Int, typename _Tp, std::size_t _Nm>