C++20 allows iterators for input ranges to be move-only, for example std::ranges::basic_istream_view::iterator
. Unfortunately fmt::join_view
copies iterators in various places, meaning it can't be used with such ranges:
int main() { std::istringstream iss("1 2 3 4 5"); auto view = std::views::istream<int>(iss); fmt::println("{}", fmt::join(view, ", ")); // Error, use of deleted iterator copy constructor }
https://godbolt.org/z/1ndGahqb7
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4