r/cpp • u/adityazero • Sep 20 '26
CppCon At cppcon WG21 had a whiteboard asking attendees what they would like to have in C++29
some of the ones I remember was:
- contracts
- profiles
- delete moar stuff
I'm curious what folks here expect. Also if someone remembers rest of the list, that'd be great.
55
Upvotes
View all comments
Show parent comment
2
u/CreativeAlbatross319 Sep 20 '26
No, I meant pattern matching with concepts. I usually give std::visit a lambda temple. Inside the lambda, I use if constexpr with concepts to have different runtime code according to the properties of the type. It can be really complex as concepts can represent complex constraints.
Have you ever tried to do this?