boostorg / boostorg/icl

Assertion in "boost::icl::intersects" for empty interval

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

Description

The following example gives an assertion with boost 1.66.0 under Windows:
```
typedef boost::icl::discrete_interval interval_t;
typedef boost::icl::interval_set interval_set_t;

interval_t int1 = interval_t::right_open(2, 7);
interval_t int2 = interval_t::right_open(3, 3);
interval_set_t intset;
intset.insert(int1);

// OK, returns "false":
bool b1 = intersects(int1, int2);

// Assertion in "boost::icl::non_empty::exclusive_less",
// because interval "right" is empty:
bool b2 = intersects(intset, int2);
```
Expected behavior would be that the second call to `boost::icl::intersects` also returns "false".

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.