Skip to content

Commit

Permalink
add const begin/end iterators to SurfaceCollection to let it work in …
Browse files Browse the repository at this point in the history
…range-based for loops (const)
  • Loading branch information
lordofhyphens committed Jan 6, 2019
1 parent f18c340 commit 748dd3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xs/src/libslic3r/SurfaceCollection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ class SurfaceCollection
Surfaces::iterator end() { return this->surfaces.end();}
Surfaces::const_iterator cbegin() const { return this->surfaces.cbegin();}
Surfaces::const_iterator cend() const { return this->surfaces.cend();}
Surfaces::const_iterator begin() const { return this->surfaces.cbegin();}
Surfaces::const_iterator end() const { return this->surfaces.cend();}
};

}
Expand Down

0 comments on commit 748dd3c

Please sign in to comment.