third_party/olm-patches/0001-fix-list-const-ptr.patch
raw| 1 | diff --git a/include/olm/list.hh b/include/olm/list.hh |
| 2 | index 6906c87..e8f3b7c 100644 |
| 3 | --- a/include/olm/list.hh |
| 4 | +++ b/include/olm/list.hh |
| 5 | @@ -99,7 +99,7 @@ public: |
| 6 | return *this; |
| 7 | } |
| 8 | T * this_pos = _data; |
| 9 | - T * const other_pos = other._data; |
| 10 | + T const * other_pos = other._data; |
| 11 | while (other_pos != other._end) { |
| 12 | *this_pos = *other; |
| 13 | ++this_pos; |