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

Request: operator[ ] for containers can be configured to emit an exception #997

Open
abailey-isi opened this issue Dec 18, 2024 · 2 comments
Assignees

Comments

@abailey-isi
Copy link

It would be wonderful if there was a way to configure ETL to emit an exception if accessing an out-of-range element of a container when using the operator [ ] instead of just the at( ) method.

e.g.
image

@jwellbelove
Copy link
Contributor

jwellbelove commented Dec 19, 2024

I could maybe add an optional configuration macro similar to ETL_CHECK_PUSH_POP, maybe called ETL_CHECK_INDEX_OPERATOR

@jwellbelove
Copy link
Contributor

jwellbelove commented Feb 23, 2025

Fixed 20.40.0

EDIT: No it wasn't!

@jwellbelove jwellbelove reopened this Feb 25, 2025
@github-project-automation github-project-automation bot moved this from Done to In progress in Embedded Template Library Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

2 participants