C++ - Reddit
226 subscribers
48 photos
8 videos
1 file
25.7K links
Stay up-to-date with everything C++!
Content directly fetched from the subreddit just for you.

Join our group for discussions : @programminginc

Powered by : @r_channels
Download Telegram
4 compilers and 3 different results when partially/fully specializing member class template of a class template

I was playing with examples from cppreference, specifically https://cppreference.com/cpp/language/partial_specialization at the bottom in order to understand specialization deeper and form some notes. Maybe even at some point put out a template guide on my website.

Last 2 statements describe very similar situation but the order of words in each sentence is so different and the example so narrow that I had trouble figuring out what these really mean:

> If the primary member template is explicitly (fully) specialized for a given (implicit) specialization of the enclosing class template, the partial specializations of the member template are ignored for this specialization of the enclosing class template.

> If a partial specialization of the member template is explicitly specialized for a given (implicit) specialization of the enclosing class template, the primary member template and its other partial specializations are still considered for this specialization of the enclosing class template.

Eventually I managed to figure out the example only showcases the first statement and that the difference between these 2 situations is this:

- `struct A<short>::B {};` - full spec of member B template for implicitly-instantiated A template (replaces all B for A<short>)
- `struct A<short>::B<T&> {};` - partial spec of member B template for implicitly-instantiated A template (adds another spec to A<short>, merging it with specs from primary A template)

To confirm I reason correctly, I wrote some sample code to have a more comprehensive example. I did not expect to encounter 3 different outputs from 4 different compilers. And I don't think you can reach UB on templates alone.

https://godbolt.org/z/8z7vde1PE

So which one is correct (if any - maybe it's *ill-formed no diagnostic required*)? The comments are my expectations, the question marks are places where compilers disagree.

Also, member specialization isn't even a C++11 feature. Compiler bugs in something so old and fundamental (and supposedly easy to unit-test) ... I have no words.

https://redd.it/1x9tx4m
@r_cpp
C++/Java interoperability and system failures at WAWTech — Warsaw, 26–27 November

Hi there! I am working with the organising team for WAWTech. Its two-day software and product development conference and takes place at EXPO XXI in Warsaw on 26–27 November 2026.

Want to share two talks from the programme that may be relevant here:

First one is Denys Makogon, Oracle — “The Modern Challenge of Integrating C++ into the Java Ecosystem: Problems, Consequences, and Solutions”. The talk looks at what happens when Java applications need to use C++ libraries (OpenCV or OpenVINO). It covers differences in memory models, object lifetimes and error handling, and how to build a reliable bridge between the two languages.

Second one is Paweł Romul — “Your System Will Fail. What Now?”. Its a broader architecture talk examining two real incidents and the decisions that led to very different outcomes. This one isn’t C++-specific, but i think may interest people working on systems where failure handling shapes the design :)

Event details if you’re considering attending.

https://redd.it/1x9vpqz
@r_cpp
New C++ Conference Videos Released This Month - October 2026 (Updated To Include Videos Released 2026-10-12 - 2026-10-18)

**C++Now**

2026-10-12 - 2026-10-18

* Implementing Logic in C++ - Hans de Nivelle - [https://youtu.be/3ffgtI31iKw](https://youtu.be/3ffgtI31iKw)
* The Secret to C++ Reflection Now: CMake Code Generation - Bret Brown - [https://youtu.be/OW\_h9oyHQ-0](https://youtu.be/OW_h9oyHQ-0)
* Co-Designing Integrated AI-Enabled Compiler-Runtime Systems - Hartmut Kaiser - [https://youtu.be/cIt4D\_SJcI8](https://youtu.be/cIt4D_SJcI8)

2026-10-05 - 2026-10-11

* Signal Trees - A Deep Dive into a High-Performance Alternative to Queue-Based Task Scheduling - Michael Maniscalco - [https://youtu.be/ZRd\_XN3LGxo](https://youtu.be/ZRd_XN3LGxo)
* Object Oriented Programming in Contemporary C++ - Steve Downey - [https://youtu.be/m7gwSr27m74](https://youtu.be/m7gwSr27m74)
* Cutting Some Slack for our Programs - Lisa Lippincott - [https://youtu.be/xwnRPyRK5h4](https://youtu.be/xwnRPyRK5h4)

2026-09-28 - 2026-10-04

* What Every C++ Programmer Needs to Know About AI - Jody Hagins - [https://youtu.be/ZBXHPKVCa8E](https://youtu.be/ZBXHPKVCa8E)
* SPL - Open Source, Constexpr Library for Composing Algorithms - John Bandela - [https://youtu.be/96AGjm3uwko](https://youtu.be/96AGjm3uwko)
* Senders For Existing Asynchronous Interfaces - Dietmar Kühl - [https://youtu.be/KB5Nfofgu2k](https://youtu.be/KB5Nfofgu2k)

**ACCU**

2026-10-12 - 2026-10-18

* Dependency Injection and Dependency Inversion - C++ Perspective - Vladimir Vishnevskii - [https://youtu.be/hzD9k4BZCE4](https://youtu.be/hzD9k4BZCE4)
* AI Writes All Your Code Now - How Will You Ever Debug It? - Greg Law & Mark Williamson - [https://youtu.be/-hTG9Jp\_2PU](https://youtu.be/-hTG9Jp_2PU)
* The Not-So-Hidden Corners of C++ ABI Stability - Luis Caro Campos - [https://youtu.be/3nd4RIH5okA](https://youtu.be/3nd4RIH5okA)

2026-10-05 - 2026-10-11

* Real-time Safety in C & C++ - Guaranteed by the Compiler! - Anders Schau Knatten - [https://youtu.be/FeYEO3PhEVY](https://youtu.be/FeYEO3PhEVY)
* Modernizing Legacy Codebases Without Stopping the World - Peter Muldoon - [https://youtu.be/w9k-L0GLLKM](https://youtu.be/w9k-L0GLLKM)
* Our Journey Toward a Fully Backward-Compatible, UB-Safe, ISO C++ - John Lakos - [https://youtu.be/whFzmXXhG5g](https://youtu.be/whFzmXXhG5g)

2026-09-28 - 2026-10-04

* Refactoring Towards Structured Concurrency - Roi Barkan - [https://youtu.be/ttoQfPP\_Gkg](https://youtu.be/ttoQfPP_Gkg)
* Design Patterns - The Most Common Misconceptions (3 of N) - Klaus Iglberger - [https://youtu.be/bAsJvmtYZOg](https://youtu.be/bAsJvmtYZOg)
* One Lib to Rule Them All and in the Darkness bindgen… - Antonello Palazzi & Kay Hicketts - [https://youtu.be/9BpVjPKv02s](https://youtu.be/9BpVjPKv02s)

**ADC**

2026-10-12 - 2026-10-18

* Introduction of the Technologies That Make Up Project LYDIA - Taichi Kumon & Tom Baker - [https://youtu.be/-Cyht3g4H1s](https://youtu.be/-Cyht3g4H1s)
* AI for Circuit Modeling - 村井 勝吾 / Shogo Murai - [https://youtu.be/IL08vd0EiFY](https://youtu.be/IL08vd0EiFY)
* MIDI 2.0 - Ready to Ship - Brett g Porter - [https://youtu.be/RGLtRZC--34](https://youtu.be/RGLtRZC--34)

2026-10-05 - 2026-10-11

* BEEPS and PORTS - Annoy Everyone in Your House While Building An Audio Synthesizer - Joseph Stewart - [https://youtu.be/bnIV2nyh-rg](https://youtu.be/bnIV2nyh-rg)
* Hardware DSP Asset Inheritance and Evolution - Takeshi Kuwahara - [https://youtu.be/yYukJpiFOOU](https://youtu.be/yYukJpiFOOU)
* Field Recording - In Search for Perfect Sounds - Malin Arvidsson - [https://youtu.be/L5iZDi71VWU](https://youtu.be/L5iZDi71VWU)

2026-09-28 - 2026-10-04

* Designing Interactive Music Experiences in XR - Kasson Crooker - [https://youtu.be/J3sVHT8luKs](https://youtu.be/J3sVHT8luKs)
* When (Not) to Patent Audio Software - Simon Hestermann - [https://youtu.be/stBB1JoKQiY](https://youtu.be/stBB1JoKQiY)
* Distribution Strategies for Indie Audio Developers - From Plugin to Product - Dani Karanyi -
I made a job board that only lists C++ jobs

Every time I went looking for a new job position I'd lose hours scrolling past "C/C++/C#" listings, recruiter reposts, and jobs where C++ was keyword.

So I built cppjobs.dev. It's pretty simple. It only lists jobs where C++ is actually a big part of the work, and I check every post myself before it goes up. You can filter by location, remote/hybrid/on-site, contract type and salary, or sign up for email alerts if you don't want to keep checking. Apply goes straight to the company. I'm not a recruiter and never see your CV. No accounts, no ads, no tracking cookies.

It just launched it this morning, so honestly there aren't many jobs on it yet. If you're hiring C++ people, posting is free for now and I'd really appreciate it.

Mostly I'd love to hear what bugs you about the job boards you use now. What would make you actually use this one?



https://redd.it/1xa7l9k
@r_cpp
Project Building AxisOS: A Debian-based distro with a custom Wayland/Qt6 DE and bespoke package manager. Looking for contributors

Hey

I'm a software engineering student and I've recently started working on AxisOS, a new open-source Linux operating system project.

I'm currently at the foundational stage and am looking to build a team of contributors who want to get their hands dirty with C/C++, Wayland, and low-level Linux systems architecture.

The Stack & Architecture:
Base: Debian (leveraged for underlying hardware compatibility and core library stability).

Display & Desktop Environment: A custom Wayland compositor (utilizing ⁠wlroots⁠) paired with a native Qt 6 desktop interface, built entirely in C++.

Package Management: I'm developing a custom ⁠.axis⁠ package manager to handle specific software deployment pipelines and dependency resolution alongside the Debian base.

Current Status:
The project is in its early infancy. Right now, the focus is strictly on foundational architecture—specifically getting the Wayland compositor logic to behave and scaffolding the core build scripts for the ⁠.axis⁠ package manager.

Who I'm looking for:
If you're interested in systems programming and want a mostly blank canvas to experiment on, I'd love to collaborate. I'm specifically looking for:

C++ Developers: To tackle the compositor, package manager backend, and system utilities.

Qt 6 / UI Developers: To help architect and build the native desktop environment components.

Linux Architecture Enthusiasts: Anyone interested in build systems, init processes, shell configuration, and OS bootstrapping.

Whether you're an experienced systems engineer looking for a hobby project or a fellow student wanting to learn low-level Linux architecture by building it, you are welcome to join.

You can check out the current progress and source code here: https://github.com/jackyphuti/AxisOS
If you're interested in contributing, have architectural advice, or just want to tell me why building a custom package manager is a terrible idea, drop a comment or shoot me a DM!

https://redd.it/1xb6y26
@r_cpp
What is Modern C++ to you?

I keep hearing "modern C++." I've even used the term myself. And now I find I am questioning my use of the term.

1. What does "modern C++" really mean, specifically?
2. How many more years need to pass before it becomes just "C++?"
3. If "modern C++" is a thing then what is the other thing. Is it "old C++," or "legacy C++?"
4. Is C++ the only language that has a "modern" version?
5. If the answer to 4 is yes, why is C++ unique?


https://redd.it/1xbau74
@r_cpp
Valgrind 3.28 RC1

An RC1 tarball for 3.28.0 is now available at https://sourceware.org/pub/valgrind/valgrind-3.28.0.RC1.tar.bz2
https://sourceware.org/pub/valgrind/valgrind-3.28.0.RC1.tar.bz2.asc

Public keys can be found at https://www.klomp.org/mark/gnupg-pub.txt

Please give it a try in configurations that are important for you and report any problems you have via our bug tracker at https://bugs.kde.org/enter\_bug.cgi?product=valgrind

See the NEWS file for a list of changes and bugfixes https://sourceware.org/git/?p=valgrind.git;a=blob;f=NEWS;h=be8b91b474e71535f272e8f11f1f6d1d35826ed3;hb=HEAD

Unless showstopper bugs are found (and cannot be easily fixed) the final 3.28.0 release is scheduled for this Fri Oct 23.

Note that our mailinglists at sourceforge.net seem to currently be unavailable. Not a great time to have that problem...

https://redd.it/1xbm4vs
@r_cpp
What's the difference between cppreference .com and .net?

My duckduckgo googling started giving me both, I don't understand the difference and don't remember which one is the original

They both look exactly the same
.com has en. at the beginning
.net doesn't have accounts

.net has the picture, .com doesn't

---

Is it a typosquash, is one of them fake, what's going on?

https://redd.it/1xbq6xx
@r_cpp
Did my first c++ code

I did my first ever code yesterday in my computer programming university class. It's conversion of number of days to it's equivalent years and weeks. I'm not even exaggerating when I say that it inspired me so much, I want to learn more.

I've always wanted to learn coding and robotics but it always looked hard but now I want it more than ever

https://redd.it/1xc8wn9
@r_cpp
Revisit Safe C++

Everyone is aware of the deluge of vulnerabilities now hitting critical software. It even makes the mainstream news, so software safety is coming onto politician's radars.

If this gets worse, I think it is not inconceivable that at some point memory safe software becomes mandatory. Or at least for software that is "reachable" from the internet.

So is it time to revisit Sean Baxter's Safe C++? Start out with a safe context ("safeexpr") and expand from there, just like constexpr.

https://redd.it/1xchrko
@r_cpp