An exception "cannot dereference end map/set iterator" in polygon_arbitrary_formation.hpp

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Inspect polygon_arbitrary_formation.hpp at lines 1687 and 1754, starting with the while loop and the iterator used after it. Reproduce Polygon Set Data Object get(output) on a complex polygon and trace the iterator state. Done means the operation no longer dereferences an end map/set iterator; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Description

While using Polygon Set Data Object void get(output_container& output) to get fractures of a complex polygon, line#1754 in polygon_arbitrary_formation.hpp caused the exception. The exception happened since line#1687 in polygon_arbitrary_formation.hpp. In line#1687, it increases value of "iter" to get out "while" loop . After the while loop, value of "iter" is null which is used in line#1754 to cause the exception happened.

Dominant language
C++
Stars
70
Forks
76
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/polygon

All issues in boostorg/polygon

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.