-
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
ISO C++ 2026-01 Mailing is now available
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/#mailing2026-01
https://redd.it/1qewi79
@r_cpp
How do exceptions work in C++ on Linux?
https://pvs-studio.com/en/blog/posts/cpp/1333/
https://redd.it/1qehue6
@r_cpp
Placement new on stack object
Hello everyone, I recently learned about placement new, but so far I can only find examples of it's usage on heap memory.
I was wondering if it's valid for stack allocated objects to reuse their memory.
For example if i have
auto fn(){
Type object{};
object.~Type();
new (&object) Type;
}
Support for C++26 Reflection has been merged into GCC trunk!
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=4b0e94b394fa38cdc3431f3cfb333b85373bd948
https://redd.it/1qdn04o
@r_cpp
mp-units 2.5.0 released - mp-units
https://mpusz.github.io/mp-units/HEAD/blog/2025/12/24/mp-units-250-released/
https://redd.it/1qdcvwg
@r_cpp
Hylo, a language that can be an inspiration for better C++ style.
I keep following with interest the development of Hylo.
I think this talk about structured concurrency:
https://www.youtube.com/watch?v=k6fI4asLJxo
And this one about Hylo itself are a good view for all C++ developers the same way Lisp is a good language to learn from it.
https://www.youtube.com/watch?v=5lecIqUhEl4
https://redd.it/1qdbw22
@r_cpp
The Taming of Collection Scans
https://www.scylladb.com/2026/01/06/the-taming-of-collection-scans/
https://redd.it/1qd8ae0
@r_cpp
attend. Find out more including how to get a VISA at https://homeofficemedia.blog.gov.uk/electronic-travel-authorisation-eta-factsheet-january-2025/
https://redd.it/1qcv3n7
@r_cpp
Senior Unity developer interested in starting C++ development
Hello! I am a senior Unity developer, I've been workin with C# for almost 6 years and am very proud of my skills. However, I work mostly in the game industry and the pay is not very... appropriate. I want to develop different kinds of softwares, such as video editors, desktop tools, audio VSTs... and it seems like C++ is the most appropriate language for me to go into, also considering I used to code in SDL + OpenGL back in 2010 (nothing professional, I was just a kid playing with it).
Is it possible for me to find a job in the area? As a brazilian professional not so young (31yo), how likely it is for me to find a job that would allow me to dive into C++? Is it worth it? Or should I just stick to what I already know and do best and leave C++ as a hobby of mine? I want to get closer to the hardware coding, I even tried some Assembly 6502 just for fun and it was really interesting for me. But is it worth the effort?
https://redd.it/1qctd4m
@r_cpp
How the C++ STL works under the hood
https://youtu.be/PsHOnObZV4c?si=BldeWiW0u4EJOXNo
https://redd.it/1qc92ef
@r_cpp
fault: a lightweight C++20 crash handler and panic library with signal-safe trace logging and visual popups.
Hello! I've been developing a lightweight tool to detect, alert, and log whenever a fatal condition has occurred. I'm sharing it here today in case it's useful for your own projects.
I started this as a utility for my own project because I wanted two things:
- Visibility Alert users with a fatal popup/dialog instead of silent crashes
- Reliability Be able to reliably save unresolved traces that can then be resolved later given original debug files.
I wanted this without adding heavy dependencies or injections. fault is a Linux and Windows library for C and C++ users, implemented in C++20. Key features:
- Broad coverage Handles POSIX signals, Windows SEH exceptions, std::terminate, as well as having explicit panic and panic-based assertions
- Signal-safe by default: Prioritizes logging unresolved, safe traces within POSIX signal handlers. Safe trace cannot be written? If the user permits, fault will perform a best-effort attempt to do a regular trace while imposing safeguards against deadlocks and recursive signals.
- Concurrency Resilient: If multiple threads trigger a fatal condition simultaneously, fault ensures only the first one enters the mechanism. It prevents the system from shutting down prematurely during the microseconds needed to log and display the report or popup.
- Panic and Modern C++ assertions, backed with fault unified handling. Includes FAULT_ASSERT, fault::panic, fault::expect, with support for customizable strings, formatted arguments, and deferred callables. Wether debug only or also release, and wether you'll want source location or not, there's an equivalent expression present.
- Cpptrace integration: Whereas hidden by default, if you use cpptrace, fault can automatically log propagated traces from exceptions and saved requested traces whenever a panic or std::terminate trigger.
Additional Utilities:
- Explicit shutdown request API (atomics-backed).
- Automated optional handling for SIGINT / SIGTERM
- A Python script to resolve traces using addr2line
Link to repo: GitHubfault is a work in progress (v0.1.2), and new features may happen in the coming weeks. Feedback is appreciated.
https://redd.it/1qbyaca
@r_cpp
Best Practices for AI Tool Use in C++ - Jason Turner - CppCon 2025
https://www.youtube.com/watch?v=xCuRUjxT5L8
https://redd.it/1qbu9rx
@r_cpp
What are considered some good interview questions?
I thought I’d ask the community what kind of questions could be considered good to gauge the level of candidates for a job requiring to write some code.
https://redd.it/1qbq4fg
@r_cpp
Qt Developer User Survey 2026
https://www.surveymonkey.com/r/QtDevSurvey2026
https://redd.it/1qas8iq
@r_cpp
Breaking Dependencies: The SOLID Principles - Klaus Iglberger - CppCon 2020
https://www.youtube.com/watch?v=Ntraj80qN2k
https://redd.it/1qb523b
@r_cpp
Designated Initializers, the best feature of C++20 · Mathieu Ropert
https://mropert.github.io/2026/01/15/designed_initializers/
https://redd.it/1qelm4y
@r_cpp
fil-qt: A Qt Base build with Fil-C experience
https://git.qt.io/cradam/fil-qt
https://redd.it/1qedgkf
@r_cpp
LLDB in 2025
https://jonasdevlieghere.com/post/lldb-2025/
https://redd.it/1qdt75u
@r_cpp
C++ Podcasts & Conference Talks (week 3, 2025)
Hi r/cpp! Welcome to another post in this series. Below, you'll find all the C++ conference talks and podcasts published in the last 7 days:
# 📺 Conference talks
# CppCon 2025
1. **"Best Practices for AI Tool Use in C++ - Jason Turner - CppCon 2025"** ⸱ +5k views ⸱ 13 Jan 2026 ⸱ 01h 02m 10s
2. **"Making C++ Safe, Healthy, and Efficient - John Lakos - CppCon 2025"** ⸱ +4k views ⸱ 08 Jan 2026 ⸱ 01h 10m 30s
3. **"Lazy and Fast: Ranges Meet Parallelism in C++ - Daniel Anderson - CppCon 2025"** ⸱ +4k views ⸱ 09 Jan 2026 ⸱ 01h 06m 39s
4. **"Back To Basics: C++ Strings and Character Sequences - Nicolai Josuttis - CppCon 2025"** ⸱ +3k views ⸱ 12 Jan 2026 ⸱ 01h 05m 18s
5. **"Agentic C++ Debugging Live! - Without a Safety Net - Daisy Hollman & Mark Williamson - CppCon 2025"** ⸱ +1k views ⸱ 14 Jan 2026 ⸱ 01h 06m 26s
# Meeting C++ 2025
1. **"C++23 tools you would actually use - Alex Dathskovsky - Meeting C++ 2025"** ⸱ +1k views ⸱ 10 Jan 2026 ⸱ 01h 00m 20s
2. **"Towards Safety and Security in C++26 - Daniela Engert - Meeting C++ 2025"** ⸱ +1k views ⸱ 08 Jan 2026 ⸱ 01h 02m 21s
3. **"Sanitize for your Sanity: Sanitizers tools for Modern C++ - Evgenii Seliverstov - Meeting C++ 2025"** ⸱ +600 views ⸱ 12 Jan 2026 ⸱ 01h 00m 00s
4. **"Monadic Operations in C++23 - Robert Schimkowitsch - Meeting C++ 2025"** ⸱ +300 views ⸱ 14 Jan 2026 ⸱ 00h 54m 35s
# NDC TechTown 2025
1. **"The Real Problem of C++ - Klaus Iglberger - NDC TechTown 2025"** ⸱ +1k views ⸱ 13 Jan 2026 ⸱ 00h 56m 59s
2. **"More Speed & Simplicity: Practical Data-Oriented Design in C++ - Vittorio Romeo - NDC TechTown 2025"** ⸱ +600 views ⸱ 13 Jan 2026 ⸱ 01h 07m 20s
3. **"How to declare a constant in C++ - Mikhail Matrosov - NDC TechTown 2025"** ⸱ +100 views ⸱ 13 Jan 2026 ⸱ 00h 51m 36s
4. **"Adventures in Serialization: A Flexible Approach for Embedded Systems in C++ - Jørn Bersvendsen"** ⸱ +100 views ⸱ 13 Jan 2026 ⸱ 00h 57m 19s
Sadly, there are no new podcasts this week.
This post is an excerpt from the latest issue of ***Tech Talks Weekly*** which is a free weekly email with all the recently published Software Engineering podcasts and conference talks. Currently subscribed by +7,900 Software Engineers who stopped scrolling through messy YT subscriptions/RSS feeds and reduced FOMO. Consider subscribing if this sounds useful: *https://www.techtalksweekly.io/*
Let me know what you think. Thank you!
https://redd.it/1qdhijf
@r_cpp
Time in C++: Creating Your Own Clocks with <chrono>
https://www.sandordargo.com/blog/2026/01/14/clocks-part-7-custom-clocks
https://redd.it/1qdc5la
@r_cpp
im fed up with thie error
└─$ /usr/bin/env /bin/sh /tmp/Microsoft-MIEngine-Cmd-a24agjq2.a0q
/bin/sh: 0: cannot open /tmp/Microsoft-MIEngine-Cmd-a24agjq2.a0q: No such file
i did edit the tasks.json and launch .json but still its giving me this error every time does someone have a fix?
im using vs code on linux btw
https://redd.it/1qd92bd
@r_cpp
More Speed & Simplicity: Practical Data-Oriented Design in C++ - Vittorio Romeo - NDC TechTown 2025
https://www.youtube.com/watch?v=zDFSDBcIqhE
https://redd.it/1qcxedk
@r_cpp
Latest News From Upcoming C++ Conferences (2026-01-14)
OPEN CALL FOR SPEAKERS
(NEW) C++Now 2026 \- C++Now are looking to invite all members of the C++ community, including first time submitters, to submit session proposals for the 14th annual C++Now Conference, to be held May 4th – May 8th, 2026, in Aspen, Colorado. All submissions need to be made by February 13th! Find out more including how to submit your proposal at [https://cppnow.org/announcements/2026/01/2026-call-for-submissions/](https://cppnow.org/announcements/2026/01/2026-call-for-submissions/)
(NEW) ADCx India 2026 \- ADCx India are looking for proposals focused on educating their audience of audio software developers by 6th February. Find out more and submit your proposal at https://docs.google.com/forms/d/e/1FAIpQLSdT\_Lyr446UU2iqmIEVsT4x47NOIarRInoQeLYWA6IEWz-jNA/viewform
CppCon Academy 2026 \- CppCon Academy is asking for instructors to submit proposals for pre- and post-conference classes and/or workshops to be taught in conjunction with next year's CppCon 2026.
Workshops can be online or onsite and interested instructors have until January 30th to submit their workshops. Find out more including how to submit your proposal at https://cppcon.org/cfp-for-2026-classes/
OTHER OPEN CALLS
C++Online
Call For Online Volunteers \- Attend C++Online 2026 FOR FREE by becoming an online volunteer! Find out more including how to apply at https://cpponline.uk/call-for-volunteers/
Call For Online Posters \- Get a FREE ticket to C++Online 2026 by presenting an online poster in their virtual venue which can be on any C++ or C++ adjacent topic. Find out more and apply at [https://cpponline.uk/posters](https://cpponline.uk/posters)
Call For Open Content \- Get a FREE ticket to C++Online 2026 by...
Presenting a talk, demo or workshop as open content at the start or end of each day of the event. Find out more and apply at [https://cpponline.uk/call-for-open-content/](https://cpponline.uk/call-for-open-content/)
Running a meetup or host a social event like a pub quiz or a tetris tournament. Find out more and apply at https://cpponline.uk/call-for-meetups/
(NEW) ACCU on Sea Call For Reviewers Open \- ACCU on Sea are looking for people to review their talks to help shape their programme. Visit [https://speak.accuonsea.uk/](https://speak.accuonsea.uk/) and make or login to your account to participate!
TICKETS AVAILABLE TO PURCHASE
The following conferences currently have tickets available to purchase
(NEW) C++Online (11th - 13th March) \- Tickets are now open at https://cpponline.uk/registration/ and include a brand new £50 Indie/Individual ticket which means most people can attend for 50% less compared to last year! In addition, the conference will have more content than in the previous two years!
(NEW) ADCx India (29th March) \- Early bird tickets are now available at [https://www.townscript.com/e/adcxindia26](https://www.townscript.com/e/adcxindia26) until 20th February
(NEW) CppNorth/NDC Toronto (5th - 8th May) \- Early bird tickets are open and can be purchased at https://ndctoronto.com/tickets until 16th February
ACCU on Sea (15th - 20th June) \- You can buy super early bird tickets at [https://accuconference.org/booking](https://accuconference.org/booking) with discounts available for ACCU members.
OTHER NEWS
(NEW) CppNorth Joining Forces With NDC Conferences to Create NDC Toronto \- Find out more at https://cppnorth.ca/news/cppnorth-joins-ndc/
Finally anyone who is coming to a conference in the UK such as C++ on Sea or ADC from overseas may now be required to obtain Visas to
Top Resources to Master C++ Fast in 2026
# https://www.youtube.com/watch?v=PrBwX0KEsXA
https://redd.it/1qcpemq
@r_cpp
upcoming LA sprawl c++ meetup
Hi all,
I posted last month asking if there is / was any interest in a c++ meetup in the LA region. There was enough interest to see this through, so we are moving forward and planning the first meetups quite soon.
If you live in the region and are interested in attending future c++ meetups, please post a comment here or send me a message, and I can share more details there!
https://redd.it/1qc4ygu
@r_cpp
C++20: An (Almost) Complete Overview - Marc Gregoire - CppCon 2020
https://www.youtube.com/watch?v=FRkJCvHWdwQ
https://redd.it/1qbuyue
@r_cpp
What′s C++ like in gamedev?
https://pvs-studio.com/en/blog/posts/cpp/1331/
https://redd.it/1qbqjun
@r_cpp
I am giving up on modules (for now)
At work I was tasked with implementing a new application from scratch. It has similarities to a game engine, but more for scientific use. So I thought to myself, why not start with all the newest (stable) features.
So I went ahead and setup a project with CMake 4.2, C++23 using modules and a GitHub actions matrix build to ensure, that all target platforms and compilers are happy. I use GCC 15.2, clang 22 and MSVC 19.44.
The very first thing after implementing my minimal starting code was to drop support for MacOS, because I couldn't get it to compile with AppleClang or LLVM Clang, while having success with the same Clang version on Linux.
Next thing I stumbled upon where stuff like std::string_view causing internal compiler errors on GCC and Clang, but very inconsistently. So I had to revert most of the cases back to std::string or even const char* in some parts, because std::string also caused ICEs ...
Then I got frustrated with circular dependencies. To my surprise modules just straight up disallow them. I know, that in general they are a bad idea, but I needed them for designing nice interfaces around other libraries behind the scenes. So I either had to revert to good old headers and source files or do some other not so nice workarounds.
After all this hardship I tried integrating the EnTT library. This is where I gave up. MSVC couldn't handle the header only version, because of bugs related to finding template overloads. When switching to the experimental modules branch of the library MSVC got happy, while the GCC linker got unhappy because it couldn't link against std::vector specializations of EnTTs internals.
There were many other ICEs along the way, that I could workaround, but I noticed my development pace was basically a tenth of what it should have been, because each feature I implemented I had to spend 3 days finding workarounds. At the beginning I even started submitting bug reports to the compiler vendors, but I gave up here, because that slowed me down even more.
I would have thought that six years after the standard introduced C++20 modules, there would be less issues. I know this is a BIG feature, but having a new compiler bug each day is just not viable for commercial software.
For now I will reimplement everything using headers and source files. Maybe I can revisit modules in a few years.
Sorry for this rant. I have great respect for all the developers that bring C++ forward. I was just too excited to start a new project with all the modern features and realizing that this was not ready yet.
https://redd.it/1qboacf
@r_cpp
C++ TUI served via ssh
I am working on a C++ project inspired by the primagen's terminal.shop. i basically want to display my portfolio using a TUI via SSH. This is my first time making a TUI(I am using FTXUI), working with SSH and my first c++ project in general. I was able to easliy do the server part using libssh but i am not able to figure out how to send a tui over ssh. As fas as i know i can only send streams of text over ssh. and therefore need to handle each interaction on the backend. the biggest hurdle i am facing is making the tui responsive. the ui doesn't change its dimensions from its original ones. i want it to fit to screen always.
https://redd.it/1qblhzm
@r_cpp
Time in C++: Additional clocks in C++20
https://www.sandordargo.com/blog/2026/01/07/clocks-part-6-cpp20
https://redd.it/1qbjmfn
@r_cpp