Fixing compilation errors: A non-const reference does not accept

a temporary variable.
This commit is contained in:
bubnikv 2018-03-16 10:04:42 +01:00
parent 4f0c6dd879
commit 1b23f9cd6e

View File

@ -990,7 +990,7 @@ void TriangleMeshSlicer::make_loops(std::vector<IntersectionLine> &lines, Polygo
struct OpenPolyline {
OpenPolyline() {};
OpenPolyline(IntersectionReference &start, IntersectionReference &end, Points &&points) :
OpenPolyline(const IntersectionReference &start, const IntersectionReference &end, Points &&points) :
start(start), end(end), points(std::move(points)), consumed(false) {}
void reverse() {
std::swap(start, end);