What really kills C++
a4z.noexcept.devThe C++26 ballot failed, and everyone is arguing about contracts and the future of C++. I think we're worried about the wrong thing.The C++26 ballot failed, and everyone is arguing about contracts and the future of C++. I think we're worried about the wrong thing.r/cpp • u/ericbrumer • 11d ago
Hi, MSVC dev lead here. We're back with more MSVC Build Tools Preview blog posts. Here's what's new since mid-September. The preview is up to version 14.53 now, as 14.52 is GA (blog post coming soon).
Instructions to install & use the latest preview bits are at https://aka.ms/msvc/preview.
r/cpp • u/Xaneris47 • 11d ago
The updated edition of Terrible Tips for a C++ Developer will feature 60 "tips" on programming practices that C++ developers really shouldn't follow.
Harald is experimenting with new ways to create YouTube content, and Jonas is kind enough to join in. The topic is C++26 and contracts, since this is a hot topic at the moment and might help to get views.
So Harald does his best to potentially upset a few people by offering a slightly different perspective on the topic, while Jonas raises some interesting questions along the way.
r/cpp • u/mondmondmondmond • 13d ago
Now that MSVC 14.52 is released with Visual Studio 2026 18.12 I have tried to rebuild the project I am working on with /std:c++23. Thx for finally releasing C++23 support.
I have previously used /std:c++23preview and my assumption was that the migration would be effortless. But not so. So this is a heads up.
Most of the issues I have ran into is related to C++23 and how incomplete types are used in headers. So C++23 changed so that std::unique_ptr destructor now is constexpr. This means that I have to add/move destructor to .cpp source file. For reference, see Github issues https://github.com/microsoft/STL/issues/4215 and https://github.com/microsoft/STL/issues/4417
But I also have issues with code like:
// Forward declaration
class Foo;
class A
{
public:
void Add(const Foo & foo ) { _foos.push_back(foo); }
private:
std::vector<Foo> _foos;
};
class Foo
{
};Godbolt with MSVC 14.51 and /std:c++23preview - https://godbolt.org/z/ae5M53fK1 Works also perfectly well in GCC 16.2 -std=c++23 - https://godbolt.org/z/rhEM5MMhG
As of this writing MSVC 14.52 and /std:c++23 is not yet available on Godbolt.
But I get error C2139: 'Foo': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_nothrow_constructible'
A tad annoying.
r/cpp • u/LegalizeAdulthood • 14d ago
Your CI runners have better things to do than compile the same dependencies again. Learn how to put them on the fast track with vcpkg-github-cache, a GitHub Action that connects vcpkg binary caching to GitHub Packages.
We'll go beneath the workflow YAML to explore how NuGet packages store compiled dependencies, how vcpkg restores them, and how to manage a cache across multiple open source projects. Along the way, we'll tackle authentication, package visibility, repository permissions, and cache diagnostics. Leave ready to turn repeated compilation into reusable binaries and give your C++ builds a head start.
Join the online meeting here: https://meet.xmission.com/Utah-Cpp-Programmers
Watch previous topics on the Utah C++ Programmers YouTube channel.
r/cpp • u/TryingT0Wr1t3 • 15d 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 • 16d ago
r/cpp • u/antiquark2 • 16d ago
r/cpp • u/ProgrammingArchive • 16d 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 • 17d 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 • 18d 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 • 18d ago
r/cpp • u/emilios_tassios • 17d 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 • 17d 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 • 19d 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.