Fresh Hacker News
▲
C++26: Reflection, Memory Safety, Contracts, and a New Async Model
(infoq.com)
27 points by
birdculture
4 hours ago |
1 comment
▲
HeliumHydride
2 hours ago
[-]
The class(metaclass) {...} syntax is not part of C++ yet. It is part of a proposal targeted for C++29.
▲
nulltrace
1 hour ago
[-]
Right, metaclass is a ways off. But even without it, just the core reflection is going to save a ton of boilerplate. Half the template tricks I've written for message parsing were basically hand-rolling what `^T` will just give you.
!--frsh-comments:2-->
!--frsh-comments:1-->
!--frsh-comments:0-->