https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113068
Bug ID: 113068 Summary: <ranges>: ranges::to<std::string>() | ranges::to<std::string>() is not a range adaptor Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- libstdc++ rejects the following code, which it shouldn't be. #include <ranges> #include <string> int main() { auto adaptor = std::ranges::to<std::string>() | std::ranges::to<std::string>(); auto str = adaptor(" "); } https://godbolt.org/z/7TrzcdTcz