aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/span
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2020-11-07 10:04:31 +0100
committerFrançois Dumont <fdumont@gcc.gnu.org>2020-11-09 21:20:01 +0100
commit6db082477ad839438c4b54fc61083276c68d47ec (patch)
treef11262de46554e263d22f585467efd29b3cdcc01 /libstdc++-v3/include/std/span
parent83f1c165d2a2ebfba1164c730c0a65210fc4b285 (diff)
downloadgcc-6db082477ad839438c4b54fc61083276c68d47ec.zip
gcc-6db082477ad839438c4b54fc61083276c68d47ec.tar.gz
gcc-6db082477ad839438c4b54fc61083276c68d47ec.tar.bz2
libstdc++: Remove <debug/array>
Add _GLIBCXX_ASSERTIONS assert in normal std::array and remove __gnu_debug::array implementation. libstdc++-v3/ChangeLog: * include/debug/array: Remove. * include/Makefile.am: Remove <debug/array>. * include/Makefile.in: Regenerate. * include/experimental/functional: Adapt. * include/std/array: Move to _GLIBCXX_INLINE_VERSION namespace. * include/std/functional: Adapt. * include/std/span: Adapt. * testsuite/23_containers/array/debug/back1_neg.cc: Remove dg-require-debug-mode. Add -D_GLIBCXX_ASSERTIONS option. * testsuite/23_containers/array/debug/back2_neg.cc: Likewise. * testsuite/23_containers/array/debug/front1_neg.cc: Likewise. * testsuite/23_containers/array/debug/front2_neg.cc: Likewise. * testsuite/23_containers/array/debug/square_brackets_operator1_neg.cc: Likewise. * testsuite/23_containers/array/debug/square_brackets_operator2_neg.cc: Likewise. * testsuite/23_containers/array/element_access/60497.cc * testsuite/23_containers/array/tuple_interface/get_debug_neg.cc: Remove. * testsuite/23_containers/array/tuple_interface/get_neg.cc * testsuite/23_containers/array/tuple_interface/tuple_element_debug_neg.cc * testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc
Diffstat (limited to 'libstdc++-v3/include/std/span')
-rw-r--r--libstdc++-v3/include/std/span7
1 files changed, 1 insertions, 6 deletions
diff --git a/libstdc++-v3/include/std/span b/libstdc++-v3/include/std/span
index 24c61ba..3d996fa 100644
--- a/libstdc++-v3/include/std/span
+++ b/libstdc++-v3/include/std/span
@@ -67,12 +67,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
struct __is_std_array : false_type { };
template<typename _Tp, size_t _Num>
- struct __is_std_array<_GLIBCXX_STD_C::array<_Tp, _Num>> : true_type { };
-
-#ifdef _GLIBCXX_DEBUG
- template<typename _Tp, size_t _Num>
- struct __is_std_array<__debug::array<_Tp, _Num>> : true_type { };
-#endif
+ struct __is_std_array<std::array<_Tp, _Num>> : true_type { };
template<size_t _Extent>
class __extent_storage