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 · 1 comment
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants