r/cpp • u/TryingT0Wr1t3 • 22d 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?
r/cpp • u/TryingT0Wr1t3 • 22d ago
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?
r/cpp • u/quicknir • 23d ago
r/cpp • u/antiquark2 • 23d ago
r/cpp • u/ProgrammingArchive • 23d ago
C++Now
2026-11-02 - 2026-11-08
2026-10-26 - 2026-11-01
ACCU
2026-11-02 - 2026-11-08
2026-10-26 - 2026-11-01
ADC
2026-11-02 - 2026-11-08
2026-10-26 - 2026-11-01
C++Day
2026-10-26 - 2026-11-01
r/cpp • u/NoCard6774 • 24d ago
I have had several patches that I’ve sent PRs for )(using my work email since I thought that looked a bit more legitimate)
Patch 2) Someone responded that they were busy and would get around to it when they had a chance to. It’s been a few months and followed up in the comments to no response
patch 3) Someone was assigned to look at it. They worked at a company I haven’t heard about but they seem to no longer work there and the account has been deactivated since. I haven’t been able to get it reassigned.
I don’t really contribute to open source projects at all and I‘m unsure if this is the norm. All of them are fairly small patches to fix bugs I’ve experienced day to day and I’m curious if there’s a way to get file PRs that I am missing
A walkthrough of the new C++ 26 reflection feature, from high-level benefits via end-user usage and previous workaround hacks to the standard's final form and some of its grittier details
r/cpp • u/SoilGreat6312 • 25d ago
I work at a C++ shop with coders that I really respected - very deep C++ knowledge and are building very technical deep systems products. Over the last few months the CTO has gone off the deep end with AI talking of creating software factory (He’s been reading too much X), he releases huge multi thousand line PRs with basically no review. All sense of scientific temperament and engineering rigour has gone out of the window it seems.
I do believe that AI is a transformational tool and I use it plenty in the development process but I still strive to understand what the AI has written and often use the AI as multiplier rather than surrendering my thinking to it. it’s become increasingly hard to actually develop while deeply understanding the codebase because it has become so sloppy.
I am very sad as this means I’m not really interfacing with writing C++ as much and exploring cool new corners of the language in my daily work.
There is definitely some cool stuff this lets us do a bit more of - high level planning and systems design by reading many papers as well as exploring formal verification.
But overall I am left disappointed. I wonder how it is like at everyone else’s work places and if anyone has any thoughts and suggestions on how I can still develop my C++ knowledge.
r/cpp • u/Xaneris47 • 25d ago
r/cpp • u/emilios_tassios • 24d ago
Sharing https://hpx.dev, the central web portal for the open-source HPX C++ runtime.
The site serves as a dedicated hub for HPX developer resources, engineering updates, and community content. Currently, you can find:
Feedback from the C++ community on the site's content and organization is always welcome.
r/cpp • u/seeking-health • 24d ago
What's the point of spending years debating new syntax, language features, and abstractions if the majority of future C++ code might not be written by humans anyway?
r/cpp • u/hansvonhinten • 26d ago
Im playing around with reflection (GCC16) and I ran into the following problem:
When using std::meta::define_aggregateto complete an annotated nested class, the annotation is removed, iff the enclosing class is templated.
Below is a minimal reproducible example (Godbolt link).
I would expect both assertions to succeed, but they don't. There is also GCC PR124399, which addresses a related problem, but I'm not sure if this is the same underlying problem. Its not the same bug, since it's fixed.
Is this a bug, or am I overlooking/misunderstanding some template instantiation rules?
#include <meta>
// Works: ordinary forward declaration.
struct [[=42]] Ordinary;
static_assert(std::meta::annotations_of(^^Ordinary).size() == 1);
// Fails: forward declaration inside a class template.
template <typename T>
struct Outer {
struct [[=42]] Inner;
};
static_assert(sizeof(Outer<int>) > 0);
static_assert(std::meta::annotations_of(^^Outer<int>::Inner).size() == 1);Context: I'm experimenting with rust-like derive(debug) functionality using annotations, combined with structural type transformations (similar to AoS to SoA). I originally encountered this while trying to propagate annotations to a generated type, before reducing it to the example above.
r/cpp • u/meetingcpp • 26d ago
r/cpp • u/foonathan • 27d ago
Use this thread to share anything you've written in C++. This includes:
The rules of this thread are very straight forward:
If you're working on a C++ library, you can also share new releases or major updates in a dedicated post as before. The line we're drawing is between "written in C++" and "useful for C++ programmers specifically". If you're writing a C++ library or tool for C++ developers, that's something C++ programmers can use and is on-topic for a main submission. It's different if you're just using C++ to implement a generic program that isn't specifically about C++: you're free to share it here, but it wouldn't quite fit as a standalone post.
Last month's thread: https://www.reddit.com/r/cpp/comments/1wwiz8g/c_show_and_tell_october_2026/
r/cpp • u/victor-s8n • 28d ago
This is my first ever blog-post, any feedback is welcome! ofc, no AI got used.
r/cpp • u/R3DKn16h7 • 28d ago
Hash of 0.0 and -0.0 are not the same, as the condition:
_Keyval == 0.0F ? 0.0F : _Keyval
is optimized away if you compile with:
/arch:AVX2 /O2
https://godbolt.org/z/45WPzceYx
If you use Visual Studio 2022 it works fine. I'm somewhat surprised they don't have regression tests since the standard library explicitly handles this case.
So I guess, check you hash maps if you update.
r/cpp • u/Background-Error-910 • 27d ago
I know that I'm oversimplifying here. The way the new C++ standard is released is pushing the language behind the others, especially those who adapt new language features quicker and favorize new modern language features.
I'm not saying that the movement towards modern C++ (whatever that might mean) is not helping. I love the fact that there are new exciting features such as reflection in the C++26 standard. Saying that however, even though the standard is supposed to have these features, the adaptibility by the compilers and the ecosystem is extremely slow.
Here we are in 2026 and MSVC as of now has zero C++26 core language features implemented. And god knows how long they will be unavailable. I feel like only now when its 2026, c++23 started to be slowly adopting, which I find sad. PS: I'm aware that GCC has mostly all features implemented, but STILL not all of them. Similar situation for Clang.
Maybe a more "aggressive" and faster release cycle would help? Also faster deprecation and language cleanup? The general push has always been towards backwards compatibility, but you can't always add new things that people want without breaking compatibility and removing deprecated features. And I think that for the language it's very important to adapt the modern programming language standards. But now I don't feel like that's happening.
Obviously there are other issues with C++, such as not having standardized package managers, linters, formatters, etc. For example, the clang-tidy formatter is abysmaly slow, and just painful to use, probably because it has to accomodate the million features the C++ language permits, and even the things that doesn't make sense no more and are just left in the language as obsolete things, ready to be removed after 20 years, which is hilarious.
Anyway, what are your thoughts on this topic?
EDIT: I agree that chosing the wording "win" is a bad wording here. The main point was to address some of the weaknesses C++ has compared to other languages/ecosystems.