boostorg / boostorg/polygon

PolyLinePolygonWithHolesData::iteratorHoles is not LegacyIterator

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
70
Forks
75
PR merge metrics
No merged PRs in 30d

Description

The class template `PolyLinePolygonWithHolesData`'s member type `iteratorHoles` is not a legal `LegacyIterator` since there is no specialization of `std::iterator_traits` for it.

This leads to the surprising behavior that code won't compile when the iterator is used with the standard library's algorithms, say `std::transform`, and the concept is correctly enforced (for example by compiling with `__GLIBCXX_DEBUG`).

(There might be other iterators for which this is true as well?)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.