mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-21 03:02:10 +00:00
[buffer] Add assertions checking segments indexes >= 0 in buffered_piece_collection.
This commit is contained in:
@@ -807,6 +807,9 @@ struct buffered_piece_collection
|
||||
{
|
||||
pc.offsetted_count = pc.last_segment_index - pc.first_seg_id.segment_index;
|
||||
BOOST_ASSERT(pc.offsetted_count >= 0);
|
||||
BOOST_ASSERT(pc.first_seg_id.multi_index >= 0);
|
||||
BOOST_ASSERT(pc.first_seg_id.segment_index >= 0);
|
||||
BOOST_ASSERT(pc.last_segment_index >= 0);
|
||||
|
||||
pc.robust_ring.reserve(pc.offsetted_count + helper_points_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user