News for hackers. Stuff that matters.
Re:C++26: Pack Indexing by moonshadow565 on Friday January 24, 2025 @04:18PM (#42817018)
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!
Re:C++26: Pack Indexing by foota on Friday January 24, 2025 @05:23PM (#42817509)
Oh, that is nice!
Re:C++26: Pack Indexing by a_t48 on Saturday January 25, 2025 @02:32AM (#42820157)
That's better, yeah. I still prefer plain ole for loops, but that's much better.