73-deque-disable-harderning.patch 744 B

1234567891011121314
  1. diff --git a/include/deque b/include/deque
  2. index 26bacb7..d4238a4 100644
  3. --- a/include/deque
  4. +++ b/include/deque
  5. @@ -2431,7 +2431,8 @@ typename deque<_Tp, _Allocator>::iterator deque<_Tp, _Allocator>::erase(const_it
  6. template <class _Tp, class _Allocator>
  7. typename deque<_Tp, _Allocator>::iterator deque<_Tp, _Allocator>::erase(const_iterator __f, const_iterator __l) {
  8. - _LIBCPP_ASSERT_VALID_INPUT_RANGE(__f <= __l, "deque::erase(first, last) called with an invalid range");
  9. + // temporary disable this check for maps
  10. + // _LIBCPP_ASSERT_VALID_INPUT_RANGE(__f <= __l, "deque::erase(first, last) called with an invalid range");
  11. size_type __old_sz = size();
  12. size_type __old_start = __start_;
  13. difference_type __n = __l - __f;