Report from the Croydon 2026 ISO C++ Committee meeting - mp-units

https://mpusz.github.io/mp-units/HEAD/blog/2026/03/28/report-from-the-croydon-2026-iso-c-committee-meeting

0 points · 2 comments · view on lemmy.world

2 Comments

majoru@feddit.org · 1 pts · 152d (1 reply)

I was waiting for the expansion statements. I just wonder why they decided on the syntax template for instead of for constexpr or for consteval. Would be much more consistent IMO.

cmeerw@programming.dev · 1 pts · 152d

The main reason for the template keyword in the syntax is because the block is first parsed as a template, and then instantiated. This means you might have to use typename or template keywords in your code now.