-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<vector>: Superior string splitting (std::views::split) issue with VS2002 17.4 Preview 2 #3109
Labels
invalid
This issue is incorrect or by design
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I found the commit: #2947 via
|
Well, I think this is expected now because: #include <string>
#include <ranges>
#include <vector>
#include <iostream>
using namespace std;
int main()
{
auto ip = "127.0.0.1"s;
auto parts = ip | views::split('.');
auto as_vec = ranges::to<vector<string>>(parts);
for (const auto& s: as_vec) {
cout << s << '\n';
}
return 0;
}
|
I answered that this is by design: https://developercommunity.visualstudio.com/t/10150447#T-N10150782 |
Closing as, as @fsb4000 points out, this is by design. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
An example from https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2210r0.html#design doesn't work but it worked in 17.3
Command-line test case
Expected behavior
Should compile
STL version
Additional context
Devcom-10150447
The text was updated successfully, but these errors were encountered: