commit 1f897ded35ea67a79487e68945a1a52e70bba63f Author: Laurynas Biveinis Date: Tue May 28 16:53:23 2024 +0300 Fix bug 113123 (Compilation fails with LLVM 17 and XCode 15.3) Make mem_root_deque::operator+ and operator- methods const. diff --git a/include/mem_root_deque.h b/include/mem_root_deque.h index e144e8f69f5..579a5286da6 100644 --- a/include/mem_root_deque.h +++ b/include/mem_root_deque.h @@ -381,12 +381,12 @@ class mem_root_deque { return *this; } - Iterator operator+(difference_type offset) { + Iterator operator+(difference_type offset) const { assert_not_invalidated(); return Iterator{m_deque, m_physical_idx + offset}; } - Iterator operator-(difference_type offset) { + Iterator operator-(difference_type offset) const { assert_not_invalidated(); return Iterator{m_deque, m_physical_idx - offset}; }