Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

Pack indexing is a small but impactful feature that is very likely to land in C++26. This feature allows us to directly access specific elements in a parameter pack, which was previously only possible through awkward boolean expression crafting or recursive templates. Compiler Explorer link: https://lnkd.in/esDx4Yxn #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Wow that's game changing. I didn't know we could do that. It simplifies a lot of things.

Like
Reply

C++ changing a lot for better since I used. Is there anything for duplicating declaration in header files. I tried once putting code in .h and it worked, but maybe there should be more elegant solution. Nowadays maybe generation of header files from code somewhere in compiler tools

Like
Reply

Enable packed members, and `std::tuple` will be deprecated.

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories