You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the bug report. This doesn't seem to be specific to GCC, but occurs with Clang as well. I think the problem is that the views::split adaptor should be wrapping the passed-in ranges with views::all, but isn't doing so right now.
In the mean time, there are a couple of workarounds. You can either manually wrap the delimiter with views::all yourself:
auto foo = words | rng::views::split(rng::views::all(delimiter));
or alternatively, use a char as the delimiter rather than a string:
char delimiter = ';';
auto foo = words | rng::views::split(delimiter);
Hi, it seems that
nano::split_view
does not work as expected for a simple case (at least on gcc 8-9-trunk):Godbolt link
The text was updated successfully, but these errors were encountered: