r/cpp • https://romeo.training | C++ Mentoring & Consulting • Apr 28 '26

Things C++26 define_static_array can’t do

https://quuxplusone.github.io/blog/2026/04/24/define-static-array/
43 Upvotes

18 comments sorted by

View all comments

Show parent comment

7

u/WeeklyAd9738 Apr 29 '26

There really aren't that many magic constexpr functions in C++. It's mostly a language feature. However, it's better to introduce magic functions (like these std::meta utiltities) in the standard library than introducing new keywords (C++ already have plenty).

-1

u/pjmlp Apr 29 '26

I count at least four keywords, where others do with a single one.