Get the latest tech news
New C++ features in GCC 15
Explore new C++ front-end features in GCC 15.1, including pack indexing and structured binding declaration as a condition
C++26 features in GCC 15 include pack indexing, attributes for structured bindings, enhanced support for functions whose definition consists of=delete, and more. DR 2918 deals with deduction from an overload set when multiple candidates succeed and have the same type; the most constrained function is selected. As usual, I'd like to thank my coworkers at Red Hat who made the GNU C++ compiler so much better, notably Jason Merrill, Jakub Jelinek, Patrick Palka, and Jonathan Wakely.
Or read this on Hacker News