bump product version to 4.1.6.2
[LibreOffice.git] / mdds / 0001-Avoid-crash-when-_GLIBCXX_DEBUG-is-defined.patch
blobacddb8b17de425a5cf11bccfda6985b32e0cbdfe
1 From e77d3ba18a2fd53488048b78264be011db5423f6 Mon Sep 17 00:00:00 2001
2 From: Kohei Yoshida <kohei.yoshida@gmail.com>
3 Date: Tue, 21 May 2013 15:38:51 -0400
4 Subject: [PATCH] Avoid crash when _GLIBCXX_DEBUG is defined.
6 I'm not sure why gcc's STL debug complains when swapping two iterators
7 when one of them is a singular, but doesn't when I assign one to the
8 other via assignment. But whichever works....
9 ---
10 include/mdds/multi_type_vector_itr.hpp | 5 +++--
11 1 file changed, 3 insertions(+), 2 deletions(-)
13 diff --git a/include/mdds/multi_type_vector_itr.hpp b/include/mdds/multi_type_vector_itr.hpp
14 index a7954d2..7923a22 100644
15 --- a/b/include/mdds/multi_type_vector_itr.hpp
16 +++ u/r/screwed/include/mdds/multi_type_vector_itr.hpp
17 @@ -216,8 +216,9 @@ public:
19 iterator_common_base& operator= (const iterator_common_base& other)
21 - iterator_common_base assigned(other);
22 - swap(assigned);
23 + m_cur_node = other.m_cur_node;
24 + m_pos = other.m_pos;
25 + m_end = other.m_end;
26 return *this;
29 --
30 1.8.0