Fix a boost compatibility with old boost versions.
(replace boost::optional::has_value() by its definition is_initialized())
This commit is contained in:
parent
7ff9806386
commit
25e9d17722
|
@ -311,7 +311,7 @@ void CornerListToPolygon( SHAPE_POLY_SET& outline, std::vector<ROUNDED_CORNER>&
|
|||
RotatePoint( pt, -angPos );
|
||||
pt += arcCenter;
|
||||
OPT<VECTOR2I> intersect = inSeg.Intersect( SEG( arcExStart, pt ) );
|
||||
outline.Append( intersect.has_value() ? intersect.get() : arcStart );
|
||||
outline.Append( intersect.is_initialized() ? intersect.get() : arcStart );
|
||||
outline.Append( pt );
|
||||
angPos += angDelta;
|
||||
|
||||
|
@ -324,7 +324,7 @@ void CornerListToPolygon( SHAPE_POLY_SET& outline, std::vector<ROUNDED_CORNER>&
|
|||
}
|
||||
|
||||
intersect = outSeg.Intersect( SEG( pt, arcExEnd ) );
|
||||
outline.Append( intersect.has_value() ? intersect.get() : arcEnd );
|
||||
outline.Append( intersect.is_initialized() ? intersect.get() : arcEnd );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue