Add TODOs for ranges when we switch to C++23

This commit is contained in:
Marcus Holland-Moritz 2023-08-01 19:20:27 +02:00
parent 9d5969adb7
commit 3b5b15eaf8
2 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,8 @@ void parse_order_option(std::string_view ordname, std::string_view opt,
} // namespace
std::string fragment_order_parser::choices() {
// TODO: C++23
// auto tools = std::views::keys(order_choices) | std::views::join_with(", ");
using namespace folly::gen;
return from(order_choices) | get<0>() | unsplit<std::string>(", ");
}

View File

@ -108,6 +108,8 @@ int SYS_MAIN(int argc, sys_char** argv) {
using namespace folly::gen;
// TODO: C++23
// auto tools = std::views::keys(functions) | std::views::join_with(", ");
auto tools = from(functions) | get<0>() | unsplit(", ");
// clang-format off