-
Notifications
You must be signed in to change notification settings - Fork 13.4k
std::flat_set
dispatches non-c++17 iterators to container's insert(const_iterator, InputIterator, InputIterator)
#136656
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
Comments
See the comments in this function: llvm-project/libcxx/include/__flat_set/utils.h Lines 57 to 71 in 56f5bcb
Can we just resolve this issue as
invalid
Or should we submit an LWG issue to make some new member functions optional for sequence containers? CC @huixie90. |
I can simply add a cpp17 iterator check on the second branch. I am be conflicted about this. On the one hand, we can simply say that boost container is not standard compliant. On the other hand, even the boost one is not standard compliant, how can users’ ones be better? |
I think it would be important to file a LWG issue about this. Sure, we can fix this as an extension, but at the end of the day the Standard has to be unambiguous about what containers should be supported in |
https://godbolt.org/z/6P3rnod76
The text was updated successfully, but these errors were encountered: