r/cpp • u/Tricky_School_4613 • 2h ago
r/cpp • u/foonathan • 25d ago
C++ Show and Tell - November 2026
Use this thread to share anything you've written in C++. This includes:
- a tool you've written
- a game you've been working on
- your first non-trivial C++ program
The rules of this thread are very straight forward:
- The project must involve C++ in some way.
- It must be something you (alone or with others) have done.
- Please share a link, if applicable.
- Please post images, if applicable.
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/
C++ Jobs - Q4 2026
Rules For Individuals
- Don't create top-level comments - those are for employers.
- Feel free to reply to top-level comments with on-topic questions.
- I will create top-level comments for meta discussion and individuals looking for work.
Rules For Employers
- If you're hiring directly, you're fine, skip this bullet point. If you're a third-party recruiter, see the extra rules below.
Multiple top-level comments per employer are now permitted.
- It's still fine to consolidate multiple job openings into a single comment, or mention them in replies to your own top-level comment.
Don't use URL shorteners.
- reddiquette forbids them because they're opaque to the spam filter.
Use the following template.
- Use **two stars** to bold text. Use empty lines to separate sections.
- Proofread your comment after posting it, and edit any formatting mistakes.
Check if your comment is visible in Incognito mode, after waiting a few minutes.
- If not, it was probably automatically removed, which happens frequently for new accounts. Send modmail, otherwise we might not notice quickly.
Template
**Company:** [Company name; also, use the "formatting help" to make it a link to your company's website, or a specific careers page if you have one.]
**Type:** [Full time, part time, internship, contract, etc.]
**Compensation:** [This section is optional, and you can omit it without explaining why. However, including it will help your job posting stand out as there is extreme demand from candidates looking for this info. If you choose to provide this section, it must contain (a range of) actual numbers - don't waste anyone's time by saying "Compensation: Competitive."]
**Location:** [Where's your office - or if you're hiring at multiple offices, list them. If your workplace language isn't English, please specify it. It's suggested, but not required, to include the country/region; "Redmond, WA, USA" is clearer for international candidates.]
**Remote:** [Do you offer the option of working remotely? If so, do you require employees to live in certain areas or time zones?]
**Visa Sponsorship:** [Does your company sponsor visas?]
**Description:** [What does your company do, and what are you hiring C++ devs for? How much experience are you looking for, and what seniority levels are you hiring for? The more details you provide, the better.]
**Technologies:** [Required: what version of the C++ Standard do you mainly use? Optional: do you use Linux/Mac/Windows, are there languages you use in addition to C++, are there technologies like OpenGL or libraries like Boost that you need/want/like experience with, etc.]
**Contact:** [How do you want to be contacted? Email, reddit PM, telepathy, gravitational waves?]
Extra Rules For Third-Party Recruiters
Send modmail to request pre-approval on a case-by-case basis. We'll want to hear what info you can provide (in this case you can withhold client company names, and compensation info is still recommended but optional). We hope that you can connect candidates with jobs that would otherwise be unavailable, and we expect you to treat candidates well.
Previous Post
r/cpp • u/collapsedwood • 1d ago
What do you think about modules?
I see lot of people don't like modules how they are now can they can be improved and what can be suitable solution what do you think?
r/cpp • u/fortsnek274 • 1d ago
RFC: Using external modules or CPS with Visual Studio
Seeking feedback on this suggestion I'll hopefully make to devcom. I barely know what I'm doing, so I probably missed something. Do things work the way I think they do...
Visual Studio/MSBuild should have a way to easily consume modules and/or CPS from external libraries
What is the intended way to consume the modules of an external library? I'm not sure. With header-based libs, you just add to the include and lib paths, and away you go. Maybe stick that stuff in a props file. But for external modules? Are you supposed to reference a pre-built IFC directly?
Instead, external module sources could be discovered and built as needed by the project system. So, external modules would retain the familiar user experience of headers. You just point the project at module sources and it should Just Work.
It would also mean that the library's CMake script would not need a separate compilation of modules to a static library or IFC. A binary distribution probably shouldn't contain an IFC anyway as they may be so much more compiler-dependent than ABI.
Method 1
Add a "additional module source directories" project setting. The build system will lookup all cppm/ixx files in that directory to satisfy imports.
Method 2
Go all-in on the Common Package Specification. Add a "CPS files" project setting. The build system will collect and maybe cache information from listed CPS files to resolve includes and imports, and add additional compile settings. CPS files may use https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3286r0.pdf to list modules.
And the build system can automatically link the libraries listed in those CPS files. Maybe only if a header or module from them is used.
The advantage of this method is that it's a single setting for a library. You'd only need to list the CPS in project settings, and nothing else. The CPS provides the include paths, the libs, preprocessor defs, and module sources.
Method 3
Dedicated external CPS project type. Like method 2, but the project would make available the listed CPS packages, their includes, libs, modules, and preprocessor defs, to referencing projects through the project reference system. Such a project would also act as a central place to put the compiled modules rather than possibly duplicating them among referencing projects.
Or some other method. In essence, external modules should be easy to use, and CPS files should be the future, as maybe exported by CMake. So the project system should handle that stuff in some way.
Also, the project reference system should try to reuse compiled modules if possible, just like with import std.
Who cares about the new C++ standard?
a4z.noexcept.devWhat makes a new C++ standard worth adopting in your field?
Clang -fmodules-driver: C++20 modules and import std without an external build system
Earlier this year, Clang added basic support for building simple programs that use Clang modules or C++20 modules directly from the Clang driver, without an external build system. This includes using the std/std.compat modules: https://godbolt.org/z/sahYMsxna
The documentation landed yesterday (although the feature is already in Clang 23), so I thought I would advertise it here now: https://clang.llvm.org/docs/StandardCPlusPlusModules.html#compiling-modules-using-the-clang-modules-driver
This is still a very experimental feature, and it doesn't support caching yet. Currently, all modules used are recompiled on each invocation, which is especially painful with the large C++ Standard library modules.
The main purpose of this isn't to compete with dedicated build systems such as CMake, but to make modules more accessible. I hope this makes it easier to use modules in smaller examples, and maybe even in some people's first Hello World programs.
(This was part of a GSoC project I did in 2025. Happy to answer any questions!)
r/cpp • u/marzer8789 • 4d ago
toml++ 3.5.1 released
Hiya folks,
I've finally come back to maintaining toml++ after a couple of years focusing on other things, and am happy to share that v3.5.1 is now released! Highlights since v3.4.0:
- Support for TOML v1.1.0 đïž
- Support for C++20
std::chronodate-time types - Support for C++20 modules with
import tomlplusplus - Faster parsing (~2x, ~5x for string-heavy docs)
- Faster formatting (~1.5x, ~3x for float-heavy docs)
- Faster compiles and smaller binaries for some configurations
- Lots of fixes for various issues
Full changelog here.
"What about v3.5.0?"
3.5.0 and 3.5.1 are exactly the same library. The patch bump was necessary because I'm rusty and messed up the tagging for v3.5.0, so I just made a new release right on top of it to keep things safe for packaging systems.
Also this will probably the last feature bump for the v3.x series of releases. There's a whole load of larger structural and design things I want to get to that require breaking changes, so I'll start cooking on those and hopefully have that out as a v4 next year some time. Until then it'll just be patch bumps.
r/cpp • u/SignalDepth6131 • 5d ago
BĂșzios Trip Report
I wrote up a short report from the BĂșzios meeting and where things stand with C++26:
https://cppalliance.org/newsmedia/news/b%C3%BAzios-trip-report-what-the-c26-ballot-taught-us/
4 filesystem performance traps in the standard library · Mathieu Ropert
mropert.github.ioI've been optimizing startup times on my project lately. Some of it came down to file I/O and some bits of the standard library I consider to be potential traps. Here's a writeup.
r/cpp • u/horsey_jumpy • 6d ago
Prediction c++26
Since there's no kalshi market for c++ standards, put your predictions below for the upcoming second dis.
r/cpp • u/ProgrammingArchive • 6d ago
New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-16 - 2026-11-22)
C++Now
2026-11-16 - 2026-11-22
- Lightning Talk: Organic Evolution of Reflection in Apache Thrift - Shai Szulanski - https://youtu.be/qlDhEPgE94g
- Lightning Talk: The Unanticipated Allocator - Jeff Trull - https://youtu.be/QdD4-cPlG5c
- Lightning Talk: Generative C++ - Alon Wolf - https://youtu.be/QsVTEYVO230
2026-11-09 - 2026-11-15
- Lightning Talk: Bool - Implicitly Dangerous - Jeff Garland - https://youtu.be/dlFSJbtY49I
- Lightning Talk: Mixed-Mode Rings: io_uring_context for Kernel 7.x - Robert Leahy - https://youtu.be/Be1RA_ypYrU
- Lightning Talk: Our Most Treacherous Adversary - James McNellis - https://youtu.be/degCN1CSd5w
2026-11-02 - 2026-11-08
- Lightning Talk: The Hidden Superpower of Modern CPUs - Why ILP Can Make âMore Workâ Run Faster - Sampad Acharya - https://youtu.be/WZl7tMBBn3U
- Lightning Talk: When Weird Things Happen - Ruslan Arutyunyan - https://youtu.be/VEIJkIEKEQ4
- Lightning Talk: A Metaprogramming Checklist - Ben Deane - https://youtu.be/6n_mOFP_kBA
2026-10-26 - 2026-11-01
- AI is Forcing us to Obey Scott Meyers - Jody Hagins - https://youtu.be/CiaZq4kCH08
- C++ Libraries - The Road Ahead - Jeffrey Garland - https://youtu.be/bNipVnNaDdk
- Lightning Talk: ?: - Jonathan MĂŒller - https://youtu.be/TLj6NVx5xvk
ACCU
2026-11-16 - 2026-11-22
- Constraining Templates Before and After C++20 - The What, the How, and the Why - https://youtu.be/2XvLjFQFx9M
- How to Properly Implement Code Quality Gates in your Development Process - Paul Jansen - https://youtu.be/udHksfcEaoQ
- The Performance Mindset - Mathieu Ropert - https://youtu.be/vW-xgQM0iwk
2026-11-09 - 2026-11-15
- C++26 Uncovered - Everything You Need to Know About the New Standard - Inbal Levi - https://youtu.be/1r5Hl1EoaYo
- C++ Templates - Two-Phase Lookup - Amir Kirsh - https://youtu.be/rQgj9agTqok
- Fearless Concurrency in C++ - Tristan Brindle - https://youtu.be/-FP6tLlCxWE
2026-11-02 - 2026-11-08
- Implementing C++ Standard Library - Design and Optimisations in Libc++ - Hui Xie - https://youtu.be/9efvPYY7CuY
- How Invariant are Invariants? - David Olsen - https://youtu.be/TLk4mm4u02A
- The Biggest Misconception of Computer Science - Alex Dathskovsky - https://youtu.be/EwgkN3an1Gs
2026-10-26 - 2026-11-01
- Creating Composable Callables in Contemporary C++ - Using Senders / Receivers as a Frame Graph - Björn Fahller - https://youtu.be/A4mMO5xeQDA
- Incrementally Migrating C++ to a Memory Safe Language with Swift - Tim Condon - https://youtu.be/LMQ21X6_2FQ
- CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - https://youtu.be/cA0F3wRtZIU
CppCon
2026-11-16 - 2026-11-22
- From Firmware to Screen: Real-Time Control, Simulation, and Visualization in C++23 With CUDA and Unreal Engine - Kevin Gomez - https://youtu.be/CUQbzKDPp_I
- Back to Basics: Move Semantics - Ruslan Arutyunyan - https://youtu.be/3D4SY5vRZYk
- Same Bits Without Losing MIPS: Reproducible Numerics at Full Hardware Speed - Andrew Drakeford - https://youtu.be/-5yzXMyyV98
2026-11-09 - 2026-11-15
- C++ in the Age of AI: How Visual Studio Is Evolving - Augustin Popa & David Li - https://youtu.be/PM2tymEL2aQ
- C++26: A Curated Tour of What's New - Marc Gregoire - https://youtu.be/ak1zrDo2y-U
- Optimizing Bishop, Rook, and Queen Move Generation in a Chess Engine - Aryan Naraghi - https://youtu.be/i4XWhpoKPDs
ADC
2026-11-16 - 2026-11-22
- Introducing Focusrite Group Japan - Takeshi Nishimoto & Kengo Shimizu - https://youtu.be/TvuqBL5Q3js
- Write 0 Lines of C++ / C++ă1èĄăæžăăă« - Sota Ichikawa & hotwatermorning - https://youtu.be/EUFulnf7-RI
- Real-Time AI Audio Processing at Scale - Building Cloud-Native Audio Applications - Vishal Alhat - https://youtu.be/Tl6ZXlfIWRE
2026-11-09 - 2026-11-15
- Protect, License, Distribute with PACE Fusion Security - Ryan Wardell, Brett g Porter & Ted Barram - https://youtu.be/-JaMVZXYlBE
- The Dawn of Electronic Musical Instruments in Japan - Fumio Mieda - https://youtu.be/sNJrlMXd9dg
- Talk to Your Synth - Sound Design as a Conversation - Aurnik - https://youtu.be/LnR0Zj6NB_w
2026-11-02 - 2026-11-08
- Are You Shipping Your Source Code? - Ryan Wardell - https://youtu.be/ToPPQ6uTUJ0
- Porting a Native C++ Synth Engine to the Browser: Lessons from Katokatone - Kazuhito Inoue - https://youtu.be/KmX7mfkvDHg
- Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8_BUY
2026-10-26 - 2026-11-01
- TX/RX Part 2 - AI Audio on the Raspberry Pi - Kieran Coulter - https://youtu.be/QSiyLDHoBpo
- JUCE in DJ Products - Current Status and Future Prospects - Masamichi Tomii, Akihito Yamada & Tetsuro Abe - https://youtu.be/VElORkcpE78
- Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8_BUY
r/cpp • u/Foxi_Foxa • 6d ago
Boost.Graph 1.93: pass stateful visitors with std::ref
Dear Boost.Graph community,
Starting with Boost 1.93, you will be able to pass stateful visitors with std::ref :
Counter vis;
boost::depth_first_search(g, boost::visitor(std::ref(vis)));
// vis.count is now up to dateFor context, BGL visitors are small structures with event methods that are fired at specific points of an algorithm (e.g. the DFS algorithm calling vis.start_vertex(vertex, graph) at a certain point). Most visitors are meant to be pure observers and their events return void so they can't influence the execution flow of their algorithm. If a visitor only prints data, stateless is fine. But when wanting an answer out of a traversal (a yes/no, timestamps, paths...), it has to accumulate state.
Historically, algorithms implementation (circa 2000) predate std::ref (C++11). Any state stored in the visitor was therefore updated on a copy and lost. The recommended approach was to capture state through pointer or reference. But a reference member contradicts Core Guideline C.12 and triggers clang-tidy's cppcoreguidelines-avoid-const-or-ref-data-members, as reported by a redditor: https://www.reddit.com/r/cpp_questions/comments/1oj6mi6/boost_graph_library_example_seems_to_run_afoul_of/
From 1.93, algorithms will be able to unwrap visitors when the caller passed a reference_wrapper. It's an extension, you don't need to modify your existing code if it works. But if you want to silence the clang-tidy once for all, you now can đ
Four exceptions to this: we had 4 planar algorithms that surprisingly took visitors by reference, against this convention, and needed to be deprecated to harmonize their signatures:
- planar_face_traversal,
- make_connected,
- make_biconnected_planar
- make_maximal_planar
In 1.93, your calls still compile and behave the same, but they now emit a deprecation warning, and the old overloads are planned for removal in Boost 1.95. The replacements live in boost::graph namespace (we are harmonizing namespaces progressively too)
boost::make_connected(g, vm, vis); // still works, deprecated
boost::graph::make_connected(g, vm, std::ref(vis)); // replacementAll details, explanations and rational live in the dedicated Github Discussion: https://github.com/boostorg/graph/discussions/700
See you there ! đ„ł
r/cpp • u/grishavanika • 7d ago
std::contracts::controls::enforced
From P4451R2,
#include <contracts>
int f(int x)
pre<std::contracts::controls::enforced>(x > 0)
post<std::contracts::controls::enforced>(r : r > 0)
{
contract_assert<std::contracts::controls::enforced>(x > 0);
return x;
}
Long, 3 levels deep namespace? And
Because the label is found by ordinary name lookup, a namespace alias or a using-directive works
as well:
namespace scl = std::contracts::controls;
Same issue as with C++11 UDL: inconvinient to use, especially in headers, since include + alias is required - aliases will not make it better, in my opinion.
That makes me sad. Am I the only one?
r/cpp • u/Expert_Sheepherder24 • 6d ago
MSVC automatic import std::vector bug
developercommunity.visualstudio.com//math.ixx
module;
#include <vector>
export module math;
//nothing is exported
//main.cpp Vs2026 18.9.2
import math;
int main()
{
std::vector<char> value = { 'a', 'b', 'c'}; // OK, but why?
return 0;
}r/cpp • u/ThadeeusMaximus • 7d ago
How can we get MSVC to actually test their compiler?
It seems like every update to MSVC over the past year has had some sort of massive basic compiler regression, that the team refuses to actually hotfix because regressions are not actually considered problematic. What can we do to change this and actually make regressions fixable without waiting 6+ months? Having "LTS" compilers isn't useful when every LTS compiler has some break in it.
Using older compilers isn't an option, because we're an open source library that people use, and also GitHub Action runners automatically update to the newest compilers and don't make it easy to use old ones.
This is our new one from this time.
InsideC++26481, Always Enforce 26
youtu.beSome casual chat about recent developments in C++
C++26 is done (again)! â Trip report: November 2026 ISO C++ standards meeting (BĂșzios, Brazil)
herbsutter.comHerb's usual trip report
r/cpp • u/GodRishUniverse • 7d ago
Why is there no proper build system (CMake exists but...yk) like cargo in C++?
Meson and Bazel exist but I have not seen widespread adoptability.
Edit: I forgot to add package manager in title as well lmao
Google talk at REBASE'26: Agentic Coding is not going to save C++
So the REBASE'26 conference happened recently, and besides the whole thing of what Carbon has achieved or never will, there are talks like this one from Google folks, regarding what they are doing with their C++.
The talk is all about the recent ongoing migration discussed on Google security blog, and other related efforts.
r/cpp • u/LegalizeAdulthood • 10d ago
Stop Rebuilding the World: Faster C++ CI with vcpkg Binary Caching
youtube.comUtah C++ Programmers has released a new video.
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.
r/cpp • u/ProgrammingArchive • 13d ago
New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-09 - 2026-11-15)
C++Now
2026-11-09 - 2026-11-15
- Lightning Talk: Bool - Implicitly Dangerous - Jeff Garland - https://youtu.be/dlFSJbtY49I
- Lightning Talk: Mixed-Mode Rings: io_uring_context for Kernel 7.x - Robert Leahy - https://youtu.be/Be1RA_ypYrU
- Lightning Talk: Our Most Treacherous Adversary - James McNellis - https://youtu.be/degCN1CSd5w
2026-11-02 - 2026-11-08
- Lightning Talk: The Hidden Superpower of Modern CPUs - Why ILP Can Make âMore Workâ Run Faster - Sampad Acharya - https://youtu.be/WZl7tMBBn3U
- Lightning Talk: When Weird Things Happen - Ruslan Arutyunyan - https://youtu.be/VEIJkIEKEQ4
- Lightning Talk: A Metaprogramming Checklist - Ben Deane - https://youtu.be/6n_mOFP_kBA
2026-10-26 - 2026-11-01
- AI is Forcing us to Obey Scott Meyers - Jody Hagins - https://youtu.be/CiaZq4kCH08
- C++ Libraries - The Road Ahead - Jeffrey Garland - https://youtu.be/bNipVnNaDdk
- Lightning Talk: ?: - Jonathan MĂŒller - https://youtu.be/TLj6NVx5xvk
ACCU
2026-11-09 - 2026-11-15
- C++26 Uncovered - Everything You Need to Know About the New Standard - Inbal Levi - https://youtu.be/1r5Hl1EoaYo
- C++ Templates - Two-Phase Lookup - Amir Kirsh - https://youtu.be/rQgj9agTqok
- Fearless Concurrency in C++ - Tristan Brindle - https://youtu.be/-FP6tLlCxWE
2026-11-02 - 2026-11-08
- Implementing C++ Standard Library - Design and Optimisations in Libc++ - Hui Xie - https://youtu.be/9efvPYY7CuY
- How Invariant are Invariants? - David Olsen - https://youtu.be/TLk4mm4u02A
- The Biggest Misconception of Computer Science - Alex Dathskovsky - https://youtu.be/EwgkN3an1Gs
2026-10-26 - 2026-11-01
- Creating Composable Callables in Contemporary C++ - Using Senders / Receivers as a Frame Graph - Björn Fahller - https://youtu.be/A4mMO5xeQDA
- Incrementally Migrating C++ to a Memory Safe Language with Swift - Tim Condon - https://youtu.be/LMQ21X6_2FQ
- CallMeMaybe - Building Modern Runtime Reflection via C++26 - Laurie Kirk - https://youtu.be/cA0F3wRtZIU
ADC
2026-11-09 - 2026-11-15
- Protect, License, Distribute with PACE Fusion Security - Ryan Wardell, Brett g Porter & Ted Barram - https://youtu.be/-JaMVZXYlBE
- The Dawn of Electronic Musical Instruments in Japan - Fumio Mieda - https://youtu.be/sNJrlMXd9dg
- Talk to Your Synth - Sound Design as a Conversation - Aurnik - https://youtu.be/LnR0Zj6NB_w
2026-11-02 - 2026-11-08
- Are You Shipping Your Source Code? - Ryan Wardell - https://youtu.be/ToPPQ6uTUJ0
- Porting a Native C++ Synth Engine to the Browser: Lessons from Katokatone - Kazuhito Inoue - https://youtu.be/KmX7mfkvDHg
- Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8_BUY
2026-10-26 - 2026-11-01
- TX/RX Part 2 - AI Audio on the Raspberry Pi - Kieran Coulter - https://youtu.be/QSiyLDHoBpo
- JUCE in DJ Products - Current Status and Future Prospects - Masamichi Tomii, Akihito Yamada & Tetsuro Abe - https://youtu.be/VElORkcpE78
- Generative Instruments with Large Piano Models - Tomek Roszczynialski - https://youtu.be/EO-hGj8_BUY