Skip to content

Exception when using lt<> and gt<> together / exclusive bounds<>? #243

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

Open
sharminramli opened this issue Feb 17, 2025 · 1 comment
Open

Comments

@sharminramli
Copy link

Since bounds<> is inclusive I tried using lt<> and gt<> together to achieve an exclusive bounds check, but I get the following error:

[node-1] terminate called after throwing an instance of 'std::length_error'
[node-1]   what():  Exceeded upper bound

Is this something worth fixing or are there plans to add an exclusive bounds check?

@leonce-m
Copy link

We have the same problem. We want to have a bound that is ]a, b].

gt<>: a
lt_eq<>: b

throws the error described above.

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

2 participants