From a74909f77b7252c16bc57fc41a291ccd0f44ee53 Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Fri, 29 Apr 2011 22:36:06 +0000 Subject: [PATCH] Fixed bug 2811549: const vs. non-const iterators for STL types. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12645 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 4 ++++ Lib/std/std_container.i | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index 99dc51276..b1817048c 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -4,6 +4,10 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.4 (in progress) =========================== +2011-04-29: szager + Fixed bug 2811549: return non-const iterators from STL + methods begin(), end(), rbegin(), rend(). + 2011-04-25: szager Fixed bug 1498929: Access to member fields in map elements diff --git a/Lib/std/std_container.i b/Lib/std/std_container.i index 66a9efa79..73d0c6ad9 100644 --- a/Lib/std/std_container.i +++ b/Lib/std/std_container.i @@ -26,10 +26,10 @@ class const_iterator; class const_reverse_iterator; - const_iterator begin() const; - const_iterator end() const; - const_reverse_iterator rbegin() const; - const_reverse_iterator rend() const; + iterator begin(); + iterator end(); + reverse_iterator rbegin(); + reverse_iterator rend(); #endif %enddef