#include <boost/polygon/segment_utils.hpp> gives errors

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start by compiling a minimal source that includes boost/polygon/segment_utils.hpp without first including boost/polygon/polygon.hpp, then compare it with the working include order described in the issue. Inspect both headers to determine the intended standalone behavior. Done means the dependency is self-contained, or the required include order is prominently documented or produces a clear error.

Written by the indexing model from the issue text.

Description

This header doesn't seem to be valid on its own, it only works if included after <boost/polygon/polygon.hpp> has been included.

Either this should be documented very prominently (it doesn't seem to be) or the header should be self-sufficient and include <boost/polygon/polygon.hpp> itself, or give a clear #error explaining that the other header needs to be included first.

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.