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
This commit is contained in:
stephena 2014-11-19 15:41:49 +00:00
parent 693862c32f
commit 2611b03a8f
1 changed files with 2 additions and 2 deletions

View File

@ -33,13 +33,13 @@ void append(vector<T>& dst, const vector<T>& src)
template <class T>
void insertAt(vector<T>& dst, uInt32 idx, const T& element)
{
dst.insert(dst.cbegin()+idx, element);
dst.insert(dst.begin()+idx, element);
}
template <class T>
void removeAt(vector<T>& dst, uInt32 idx)
{
dst.erase(dst.cbegin()+idx);
dst.erase(dst.begin()+idx);
}
} // Namespace Vec