mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 23:22:00 +08:00
Trying to avoid an issue with gcc4.9
This commit is contained in:
parent
8e84041153
commit
d11f623ca5
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user