Explicitly declare iterators in the function templates

This commit is contained in:
Artur Wieczorek
2018-11-02 12:10:22 +01:00
parent dfb48b47f5
commit 63c602c3d2
2 changed files with 4 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ static bool wxPGItemExistsInVector(const wxVector<T>& vector, const T& item)
#if wxUSE_STL
return std::find(vector.begin(), vector.end(), item) != vector.end();
#else
for ( wxVector<T>::const_iterator it = vector.begin(); it != vector.end(); ++it )
for (typename wxVector<T>::const_iterator it = vector.begin(); it != vector.end(); ++it)
{
if ( *it == item )
return true;