diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2015-06-23 19:51:02 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2015-06-23 19:51:02 +0000 |
commit | 7d17de7f732927e65e35b375c4fcb193082446af (patch) | |
tree | 77923caf4451a4a86c16523c0a78d15127fb32c1 /libstdc++-v3/include/std/array | |
parent | 0fa16060ed17132d27f7884fd7a8c7bee4aa29b4 (diff) | |
download | gcc-7d17de7f732927e65e35b375c4fcb193082446af.zip gcc-7d17de7f732927e65e35b375c4fcb193082446af.tar.gz gcc-7d17de7f732927e65e35b375c4fcb193082446af.tar.bz2 |
array: Include <array>.
2015-06-23 François Dumont <fdumont@gcc.gnu.org>
* include/debug/array: Include <array>. Add version namespace when
specializing tuple interface to array. Add specialization for
__is_tuple_like_impl.
* include/profile/array: Likewise.
* include/std/array: Include <utility>. Add specialization for
__is_tuple_like_impl.
* include/std/tuple
(__is_tuple_like_impl<>, __is_tuple_like_impl<pair>): Move...
* include/std/utility: ... here. Include <type_traits>.
* testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Adjust
dg-error line number.
* testsuite/23_containers/array/tuple_interface/
tuple_element_debug_neg.cc: Likewise.
From-SVN: r224857
Diffstat (limited to 'libstdc++-v3/include/std/array')
-rw-r--r-- | libstdc++-v3/include/std/array | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/array b/libstdc++-v3/include/std/array index 40fbd46..d1b5e6d 100644 --- a/libstdc++-v3/include/std/array +++ b/libstdc++-v3/include/std/array @@ -35,6 +35,7 @@ # include <bits/c++0x_warning.h> #else +#include <utility> #include <stdexcept> #include <bits/stl_algobase.h> #include <bits/range_access.h> @@ -331,6 +332,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef _Tp type; }; + template<typename _Tp, std::size_t _Nm> + struct __is_tuple_like_impl<_GLIBCXX_STD_C::array<_Tp, _Nm>> : true_type + { }; + _GLIBCXX_END_NAMESPACE_VERSION } // namespace std |