C++26 Language Features voted into Working Draft

3 years ago by cmeerw to c/cpp

first few C++26 core language features have been voted into the C++ Working Draft at the Varna meeting:

  • P2738R1 constexpr cast from void*: towards constexpr type-erasure
  • P2741R3 User-generated static_assert messages
  • P2169R4 A nice placeholder with no name
load all comments
Nihili0 4 points 3 years ago path: 0 283702, hotness: undefined, score: 4, children: 3
corroded 1 point 3 years ago

Unless I missed it, I didn't see that reflection was included in the features for C++26. Reflection is the #1 thing I want to see in a future version of C++, but it seems like it just keeps getting pushed. What's disappointing to me is that so many of the new features are just convenient wrappers around core language features or the STL, many of which a lot of us have already implemented in our own code. Even networking, as you mentioned, can be implemented in a library (boost::asio, for example). Unless I want to write my own compiler, there's no way to implement reflection. It really should be more of a priority than it is.

path: 0 283702 463101, hotness: undefined, score: 1, children: 2
Nihili0 1 point 3 years ago path: 0 283702 463101 479152, hotness: undefined, score: 1, children: 1
cpp
cpp

@programming.dev

login for more options
2381
416
44

The center for all discussion and news regarding C++.

Rules

  • Respect instance rules.
  • Don't be a jerk.
  • Please keep all posts related to C++.

go to feed...