top | item 42817018

(no title)

moonshadow565 | 1 year ago

P1061 is in C++26 so you can instead do:

  const auto [...I] = std::make_index_sequence<INPUT_COUNT>{};
  ((SetupInput<I>(options, transport_manager, subscriber_queues[I], thread_pool, templated_topic_to_runtime_topic)),...);
yay!

discuss

order

foota|1 year ago

Oh, that is nice!

a_t48|1 year ago

That's better, yeah. I still prefer plain ole for loops, but that's much better.