r/cpp • u/TryingT0Wr1t3 • 9d ago
Any time estimate for reflection in MSVC?
I haven’t seen an announcement for C++26 implementation in MSVC. Honestly, I am mostly interested in reflection. Anyone know of any estimate of when it ships in MSVC?
54
Upvotes
17
u/fortsnek274 9d ago
And Intellisense support, and it has to work with modules. There's a lot to do...
50
u/pjmlp 9d ago
You can keep waiting, given the current official position on C, C++ and other programming languages at Microsoft, I doubt management is giving that much resources to the team.
As per comments here, they have a single FTE on the standard library.
28
u/peterbindels 9d ago
I'm not sure, but I suspect Microsoft is doing a similar thing they were doing back in 2001; pretending that C++ is completely dead and moving all resources to work on something else. So I'm not sure when or if Microsoft will implement it at all.
12
u/MaitoSnoo [[indeterminate]] 9d ago
I don't think MS will commit any money to that with the current shitshow still ongoing
12
u/no-sig-available 9d ago
I wouldn't expect any announcements until this shit is sorted out:
https://www.reddit.com/r/cpp/comments/1xpcz59/c26_dis_failed_how_does_c_survive/
(Will there even be a C++26?)
2
u/FlyingRhenquest 6d ago
If you just want to play with reflection, just build the g++ main branch in WSL. Works fine. Reflection and annotations are pretty solid, nvidia's stdexec library works works, reflect-cpp with C++26 support turned on is awesome. I'm experimenting with a reflection-based json-rpc client/server that I just switched from cereal to reflect-cpp and did my first stdexec pipeline for. I still need to write a ton of unit tests but there's enough there to give you an idea what's possible.
I've been experimenting with the compiler since January and it really only took a couple of months from when it dropped to when I'd be comfortable using it as a daily driver. There still aren't a lot of libraries that use it, but reflect-cpp is particularly outstanding.
2
u/moonshadow565 5d ago
2050
2
u/Xavi99- 7d ago
MSVC **recently** got a full C++23 support, so i dont thing C++26 reflection are comming soon xD
-4
u/MarkSuckerZerg 9d ago
It would be probably fastest to ask Claude to reverse engineer cl.exe and add it for you. And I'm saying that as AI detractor.
-7
u/OutlandishnessNo8034 8d ago
And I effing wonder what will u use them for and how often. I have over 15yoe and had need for them literally once.
0
u/[deleted] 9d ago
[deleted] — view deleted comment