Trying to avoid an issue with gcc4.9

This commit is contained in:
Joseph Lenox 2018-07-26 23:32:27 -05:00
parent 8e84041153
commit d11f623ca5

View File

@ -164,7 +164,7 @@ void
SurfaceCollection::remove_type(const SurfaceType type)
{
// Use stl remove_if to remove
auto ptr {std::remove_if(surfaces.begin(), surfaces.end(),[type] (Surface& s) { return s.surface_type == type; })};
auto ptr = std::remove_if(surfaces.begin(), surfaces.end(),[type] (Surface& s) { return s.surface_type == type; });
surfaces.erase(ptr, surfaces.cend());
}