mirror of https://github.com/stella-emu/stella.git
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:
parent
693862c32f
commit
2611b03a8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue