openscad/openscad-boost-1.69.patch

20 lines
859 B
Diff

commit c68684f9520d6c241dd5d96e57a0020837504a32
Author: Marius Kintel <marius@kintel.net>
Date: Sun Oct 21 12:02:50 2018 -0400
Build fix for boost 1.69
diff --git a/src/CSGTermEvaluator.cc b/src/CSGTermEvaluator.cc
index 6416f29b..b3753cf4 100644
--- a/src/CSGTermEvaluator.cc
+++ b/src/CSGTermEvaluator.cc
@@ -109,7 +109,7 @@ static shared_ptr<CSGTerm> evaluate_csg_term_from_geometry(const State &state,
shared_ptr<const PolySet> ps = dynamic_pointer_cast<const PolySet>(geom);
// Since is_convex() doesn't handle non-planar faces, we need to tessellate
// also in the indeterminate state so we cannot just use a boolean comparison. See #1061
- bool convex = ps->convexValue();
+ bool convex{ps->convexValue()};
if (ps && !convex) {
assert(ps->getDimension() == 3);
PolySet *ps_tri = new PolySet(3, ps->convexValue());