From 2611b03a8f882c0534676853e2ec0995261f905a Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 19 Nov 2014 15:41:49 +0000 Subject: [PATCH] Non-const iterators seem to be needed for some versions of gcc. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3091 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/Vec.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/Vec.hxx b/src/common/Vec.hxx index e4f74e9b4..fbb0677cb 100644 --- a/src/common/Vec.hxx +++ b/src/common/Vec.hxx @@ -33,13 +33,13 @@ void append(vector& dst, const vector& src) template void insertAt(vector& dst, uInt32 idx, const T& element) { - dst.insert(dst.cbegin()+idx, element); + dst.insert(dst.begin()+idx, element); } template void removeAt(vector& dst, uInt32 idx) { - dst.erase(dst.cbegin()+idx); + dst.erase(dst.begin()+idx); } } // Namespace Vec