Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkosch-uvt opened this issue Jul 17, 2019 · 0 comments
Open

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

mkosch-uvt opened this issue Jul 17, 2019 · 0 comments

Comments

@mkosch-uvt
Copy link

The following example gives an assertion with boost 1.66.0 under Windows:

typedef boost::icl::discrete_interval<int,std::less> interval_t;
typedef boost::icl::interval_set<int,std::less,interval_t> 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".

@mkosch-uvt mkosch-uvt changed the title Assertion in "boost::icl::intersects" for emty interval Assertion in "boost::icl::intersects" for empty interval Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant