This function is declared unconditionally but was only defined for C++11
and later, leading to linker errors when the testsuite was run with
-std=gnu++98 -D_GLIBCXX_DEBUG added to the flags.
* include/debug/vector (__niter_base): Define for C++98.
From-SVN: r263816
2018-08-23 Jonathan Wakely <jwakely@redhat.com>
+ * include/debug/vector (__niter_base): Define for C++98.
+
* testsuite/25_algorithms/partial_sort_copy/debug/irreflexive_neg.cc:
Fix C++98 test to not use C++11 features.
* testsuite/25_algorithms/fill_n/2.cc: Likewise.
} // namespace __debug
-#if __cplusplus >= 201103L
_GLIBCXX_BEGIN_NAMESPACE_VERSION
+#if __cplusplus >= 201103L
// DR 1182.
/// std::hash specialization for vector<bool>.
template<typename _Alloc>
operator()(const __debug::vector<bool, _Alloc>& __b) const noexcept
{ return std::hash<_GLIBCXX_STD_C::vector<bool, _Alloc>>()(__b); }
};
+#endif
template<typename _Iterator, typename _Container, typename _Sequence>
_Iterator
{ return std::__niter_base(__it.base()); }
_GLIBCXX_END_NAMESPACE_VERSION
-#endif
-
} // namespace std
namespace __gnu_debug