C++26 Draft Finalized with Static Reflection, Contracts, and Sender/Receiver Types
Briefly

The C++26 release has solidified its feature set, with significant developments like compile-time reflection, contracts, and asynchronous execution. Compile-time reflection enhances metaprogramming by allowing users to introspect types and behaviors at compile time, thereby simplifying code generation and binding with languages such as JavaScript and Python. Though it is being introduced in a partial form, its initial capabilities already promise profound advancements, including token injection for generating C++ code within the same source file. Additional features finalized in the meeting include parallel algorithms and more.
Reflection will debut in C++ in an early form and is expected to evolve in future versions, enabling advanced use cases like generating bindings for other languages.
Even with the first partial reflection capability we have today, we can already reflect on C++ types and use that information to generate additional C++ source code.
Read at InfoQ
[
|
]