Skip to content
New issue

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

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

Already on GitHub? # to your account

usertype_container.hpp: replace std::input_iterator_tag/std::random_access_iterator_tag with template type parameters. #1550

Open
deadlocklogic opened this issue Nov 7, 2023 · 1 comment

Comments

@deadlocklogic
Copy link
Contributor

Consider when bindings with libraries which are standard STL drop in replacements like for instance: EASTL, Boost...
usertype_container_default is tightly dependent on std::input_iterator_tag/std::random_access_iterator_tag, but for instance EASTL has its own input_iterator_tag/random_access_iterator_tag structs.
So instead letting the user rewrite all the usertype_container and bloat his code, we can simply convert these explicit types to template type parameters.
Thanks.

@deadlocklogic
Copy link
Contributor Author

An input_iterator_tag_trait/random_access_iterator_tag_trait could be handy too. The problem can be fairly easily solved thought and lessen the margin of error and code bloat/redundancy.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant