r/cpp • • 19d ago

C++ Show and Tell - November 2026

51 Upvotes

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/


r/cpp • • Oct 02 '26

C++ Jobs - Q4 2026

45 Upvotes

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 • • 4h ago

4 filesystem performance traps in the standard library · Mathieu Ropert

Thumbnail mropert.github.io
29 Upvotes

I'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 • • 19h ago

Prediction c++26

31 Upvotes

Since there's no kalshi market for c++ standards, put your predictions below for the upcoming second dis.


r/cpp • • 1h ago

Decoding base64 email attachments: a speed ranking of programming languages

Thumbnail lemire.me
0 Upvotes

r/cpp • • 1d ago

Boost.Graph 1.93: pass stateful visitors with std::ref

27 Upvotes

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 date

For 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));  // replacement

All details, explanations and rational live in the dedicated Github Discussion: https://github.com/boostorg/graph/discussions/700

See you there ! 🥳


r/cpp • • 31m ago

Why does this return false even when cart has 3 items?

0 Upvotes

bool has_discount(const std::vector<int>& cart) {
int min_items = -1;
if (cart.size() > min_items) {
return true;
}
return false;
}

Under C++ usual arithmetic conversions, comparing unsigned std::size_t with signed int converts -1 to SIZE_MAX, so 3 > SIZE_MAX evaluates to false. Cleanest fix in C++20 is std::cmp_greater(cart.size(), min_items) or std::ssize(cart) > min_items.
Always wild how -Wall -Wextra catches this immediately, yet it still slips into live codebases and coding assessments all the time.

Spotted this in a daily C++ bug-spotting speedrun called Redline (3 short snippets a day against a clock) if anyone wants to try today's rounds: https://redline.playredline.workers.dev


r/cpp • • 23h ago

New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-16 - 2026-11-22)

9 Upvotes

C++Now

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01

ACCU

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01

CppCon

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

ADC

2026-11-16 - 2026-11-22

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01


r/cpp • • 1d ago

std::contracts::controls::enforced

60 Upvotes

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 • • 1d ago

How can we get MSVC to actually test their compiler?

77 Upvotes

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.

https://developercommunity.visualstudio.com/t/x64-MSVC-1952-O2-miscompiles-inline-ar/11182010?q=double+19.52

This is our new one from this time.


r/cpp • • 1d ago

MSVC automatic import std::vector bug

Thumbnail developercommunity.visualstudio.com
3 Upvotes
//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 • • 19h ago

InsideC++26481, Always Enforce 26

Thumbnail youtu.be
0 Upvotes

Some casual chat about recent developments in C++


r/cpp • • 2d ago

Closing Quick Bench

Thumbnail patreon.com
67 Upvotes

r/cpp • • 3d ago

C++26 is done (again)! — Trip report: November 2026 ISO C++ standards meeting (Búzios, Brazil)

Thumbnail herbsutter.com
249 Upvotes

Herb's usual trip report


r/cpp • • 1d ago

Why is there no proper build system (CMake exists but...yk) like cargo in C++?

0 Upvotes

Meson and Bazel exist but I have not seen widespread adoptability.

Edit: I forgot to add package manager in title as well lmao


r/cpp • • 5d ago

Google talk at REBASE'26: Agentic Coding is not going to save C++

74 Upvotes

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.

https://www.youtube.com/watch?v=Ob0CMX8s55s


r/cpp • • 5d ago

Stop Rebuilding the World: Faster C++ CI with vcpkg Binary Caching

Thumbnail youtube.com
12 Upvotes

Utah 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 • • 6d ago

C++ Optimizations in MSVC Build Tools 14.52 - C++ Team Blog

Thumbnail devblogs.microsoft.com
104 Upvotes

r/cpp • • 7d ago

New C++ Conference Videos Released This Month - November 2026 (Updated To Include Videos Released 2026-11-09 - 2026-11-15)

26 Upvotes

C++Now

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01

ACCU

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01

ADC

2026-11-09 - 2026-11-15

2026-11-02 - 2026-11-08

2026-10-26 - 2026-11-01


r/cpp • • 8d ago

Why haven't C++ subset compilers been made/caught on?

50 Upvotes

At work, I write real time software. Seeing where allocations happen and having guarantees on the behaviour of code would be nice. Compile times can be much faster and optimisations can also be aggressive when you know you're restricted to a subset of the language.


r/cpp • • 8d ago

GUI Toolkit Slint 1.19 is out with backdrop blur, animated GIFs, and inertial scrolling on iOS and Android

Thumbnail slint.dev
13 Upvotes

and also with WASM and iOS support for C++ users. Thanks to all the 51 contributors for making this release happen.


r/cpp • • 8d ago

clice 1.0: a C++ language server built on Clang, with C++20 modules out of the box, non-self-contained headers, and crash isolation

61 Upvotes

Hi r/cpp! I've been working on clice, a C++ language server built on Clang, for about two and a half years, and 1.0 is out today. The main differences from clangd:

  • Every compile runs in a worker process, so a Clang crash costs one request instead of the whole server.
  • C++20 modules work out of the box from a `compile_commands.json`, with PCHs and PCMs cached on disk across sessions.
  • Non-self-contained headers are compiled in the context of a file that includes them, and you can switch contexts and build configurations.
  • Template support: completion and go-to-implementation through dependent names, using instantiations when there are any.
  • A CLI to index, query, refactor and modularize whole projects.

The post covers the features and the story behind it. Binaries for Linux, macOS and Windows (x64 and arm64) are on the release page, and the VS Code extension is on the Marketplace. Feedback and bug reports are very welcome!

Release post: https://ykiko.me/en/articles/2105384023094834022/


r/cpp • • 10d ago

CMake 4.5.0 released; supports import std for all scannable targets with C++20 and later

Thumbnail kitware.com
251 Upvotes

r/cpp • • 10d ago

DO NOT USE FIBERS! - I did it anyway

54 Upvotes

I'm a "pro-fiber" guy, which gets lonely fast when you search the internet for friends and mostly run into Gor Nishanov tearing them apart in P1364 ("Fibers under the magnifying glass"), or Raymond Chen writing that Win32 fibers "aren't useful for much any more."

Sometimes it feels like Microsoft just lacks the imagination for where fibers actually work. Fair point though: if you try to use fibers as a general-purpose replacement for OS threads in arbitrary code, the warnings are right. TLS issues, fixed stacks, and third-party libraries blocking worker threads are very real problems.

I built a fiber-based task scheduler anyway (the first version goes back to 2007), because when you're parallelizing sequential, CPU-bound code like an encoder or compressor on a single file, the tradeoffs are completely different. You own the task code, the number of active fibers is bounded by the work in flight, and tasks often run for just tens of microseconds before waiting on each other mid-work. In that spot, OS threads cost way too much and stackless coroutines force you to tear apart existing call chains.

I wrote up my side of the story - where the usual criticism hits the mark, where it misses, and why fibers still make sense here:

https://www.thinkmeta.com/concurrenttasks/why-fibers

Any other "pro-fiber" folks out there, or has everyone moved on to stackless coroutines / std::execution?