Why can't I reverse a split-range using range-v3?
问题 I want to split, reverse, and then join a string using range-v3. However, code below won't compile. #include <range/v3/all.hpp> #include <iostream> using namespace ranges; int main(int argc, char *argv[]) { auto str = std::string("abc.def.ghi"); auto sv = str | view::split('.') | view::reverse | view::join('.'); std::cout<<sv; return 0; } Compiler output: error: invalid operands to binary expression ('decltype(pipeable_access::impl<view<reverse_fn> >::pipe(static_cast<ranges::v3::split_view