PR libstdc++/82716 avoid stupid -Wmismatched-tags warnings

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
This commit is contained in:
Jonathan Wakely 2017-10-25 14:55:56 +01:00 committed by Jonathan Wakely
parent 220645d019
commit 30e0aed183
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2017-10-25 Jonathan Wakely <jwakely@redhat.com> 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 PR libstdc++/79283
* src/filesystem/ops.cc (read_symlink): Handle st_size being zero. * src/filesystem/ops.cc (read_symlink): Handle st_size being zero.
* src/filesystem/std-ops.cc (read_symlink): Likewise. * src/filesystem/std-ops.cc (read_symlink): Likewise.

View File

@ -339,7 +339,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// tuple_size /// tuple_size
template<typename _Tp> template<typename _Tp>
class tuple_size; struct tuple_size;
/// Partial specialization for std::array /// Partial specialization for std::array
template<typename _Tp, std::size_t _Nm> template<typename _Tp, std::size_t _Nm>
@ -348,7 +348,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// tuple_element /// tuple_element
template<std::size_t _Int, typename _Tp> template<std::size_t _Int, typename _Tp>
class tuple_element; struct tuple_element;
/// Partial specialization for std::array /// Partial specialization for std::array
template<std::size_t _Int, typename _Tp, std::size_t _Nm> template<std::size_t _Int, typename _Tp, std::size_t _Nm>