Skip to content
Snippets Groups Projects
Commit 138ca81e authored by Tom Fischer's avatar Tom Fischer
Browse files

[GeoLib] createPolygonTrees(): Fix C++11 issue.

std::list::erase pre C++11 implementation does not take a const iterator. This commit can be reverted if Travis uses a newer version of gcc.
parent d67d9c61
No related branches found
No related tags found
No related merge requests found
...@@ -86,8 +86,9 @@ private: ...@@ -86,8 +86,9 @@ private:
template <typename POLYGONTREETYPE> template <typename POLYGONTREETYPE>
void createPolygonTrees (std::list<POLYGONTREETYPE*>& list_of_simple_polygon_hierarchies) void createPolygonTrees (std::list<POLYGONTREETYPE*>& list_of_simple_polygon_hierarchies)
{ {
typedef typename std::list<POLYGONTREETYPE*>::const_iterator IT; typedef typename std::list<POLYGONTREETYPE*>::const_iterator CIT;
for (IT it0(list_of_simple_polygon_hierarchies.begin()); typedef typename std::list<POLYGONTREETYPE*>::iterator IT;
for (CIT it0(list_of_simple_polygon_hierarchies.begin());
it0 != list_of_simple_polygon_hierarchies.end(); ++it0) { it0 != list_of_simple_polygon_hierarchies.end(); ++it0) {
IT it1 = list_of_simple_polygon_hierarchies.begin(); IT it1 = list_of_simple_polygon_hierarchies.begin();
while (it1 != list_of_simple_polygon_hierarchies.end()) { while (it1 != list_of_simple_polygon_hierarchies.end()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment