do not use c++11 features

This commit is contained in:
Sébastien Loriot 2018-08-27 15:00:28 +02:00
parent b394525171
commit 8b9897c393
1 changed files with 1 additions and 2 deletions

View File

@ -95,8 +95,7 @@ int main()
for (int i=1;i<4; ++i)
{
Alpha_shape_3::Vertex_handle vh = f.first->vertex((f.second+i)%4);
auto p = vids.insert( std::make_pair(vh, points.size()) );
if (p.second)
if (vids.insert( std::make_pair(vh, points.size()) ).second)
points.push_back( vh->point() );
}
}