Fix a boost compatibility with old boost versions.

(replace boost::optional::has_value() by its definition is_initialized())
This commit is contained in:
jean-pierre charras 2021-07-16 14:01:26 +02:00
parent 7ff9806386
commit 25e9d17722
1 changed files with 4 additions and 4 deletions

View File

@ -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 );
}
}