#cpp23 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cpp23, aggregated by home.social.
-
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
ACCU on Sea 2026 SESSION ANNOUNCEMENT: Taming C++23 - The Things About C++23 You Do Not Know by Nicolai M. Josuttis
https://accuonsea.uk/2026/sessions/taming-cpp23-the-things-about-cpp23-you-do-not-know/
Register now at https://accuonsea.uk/tickets/
-
How does a new C++ standard actually come together?
In part 1 of this interview, Jesper Pedersen talks with Nicolai Josuttis about the evolution of C++ standards, the complexity of C++23, and the challenges of writing comprehensive modern C++ books. #CPlusPlus #CPP #Cpp23 #ModernCpp #SoftwareEngineering
Watch here:
https://www.youtube.com/watch?v=QcOiQp0xzzQ -
In my latest blog post, "What reinterpret_cast doesn't do," you'll learn about one of C++'s biggest pitfalls and how to avoid it.
https://andreasfertig.com/blog/2026/04/what-reinterpret_cast-doesnt-do/
-
C++ Insights - Episode 71: C++23: multidimensional operator[]
In this episode, you'll learn about the change to the operator[] in C++23.
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
In my main project (very large physics simulation) we're about to start allowing c++23 features. I generally try to keep c++-isms to a minimum, but I welcome things like .contains() methods and things that make c++ more pleasant (i.e. python-like). Any "favorite" c++23 features you would recommend that we adopt? Any to avoid?
#cpp #cpp23 #software #softwareDevelopment #softwareEngineering -
TIL: C++23 you can use named universal character escapes
#include <print>
int main() {
std::print("\N{GREEN HEART}"); // 💚
}https://en.cppreference.com/w/cpp/language/escape.html#Named_universal_character_escapes
-
May I make you aware of the phantastic @compiler_explorer, that totally indispensable tool to every software developer - the brainchild of @mattgodbolt ?
I can speak only as an average C++ developer who works at a small company, and who happens to be stranded in the C++ committee.
For my own experiments, I have a personal bookmark in my browser called "C++23 playground" as a starting point for for more elaborate adventures in the C++ lands. May be, it helps you as well:
https://godbolt.org/z/Mz96j16nx
To the best of my knowledge, the provided flags will give you some highly recommended defaults for compiler diagnostics and maximum language conformance, in the three major implementations Clang/libc++, GCC/libstdc++, and MSVC/MS-STL. Maybe you'll get some inspiration for your daily grind.
Please support Matt and the entire CE team 🤘, f.e. by getting some swag that we nerds can proudly present in the public and wear as protective gear ☺️
Visit https://shop.compiler-explorer.com/promo/BLACKFRIDAY 🤩
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
C++ Insights - Episode 67: C++23: Why if consteval can make your code better
In this episode, you'll learn how C++23's if consteval helps you avoiding mistakes.
-
Can somebody explain to me, why the last static assert fails? The value type has <=> operator returning strong ordering and std::map is clearly capable of having strong-ordered <=> operator.
Godbolt link: https://godbolt.org/z/xnaaoWxaq
-
C++ Insights - Episode 66: How C++23 handles temporary objects in range-based for-loops
In this episode, you'll learn how C++23 reduces undefined behavior in range-based for-loops for you.
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
We're doing some natural language processing at Safetica, so we had to integrate a tokenizer.
First, we started with HF tokenizers that use Rust as the underlying implementation. Since we consume it as a C# package and native runtimes are not shipped for Mac (thanks Apple for preventing organizations from virtualizing Macs), I made my own C++ implementation.
Naive implementation in 60 lines of code, using std::map. Was slower than Rust's impl. By about 25%.
Swapped std::map for std::flat_map. It instantly outperformed the Rust implementation. By about 20%. Sure, my impl doesn't have the full feature, but we don't need that.
Flat map is frigging cool. It is a C++23 feature, so it is not available in all compilers, but you can find open-source implementations on GitHub.
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
You write C++ for an embedded environment and going to CppCon? Then check out my workshop:
Safe and Efficient C++ for Embedded Environments📍 In-person @CppCon
📅 Sat & Sun, Sept 13–14
🥗 Lunch included👉 Book now as seats are limited
-
You write C++ for an embedded environment and going to CppCon? Then check out my workshop:
Safe and Efficient C++ for Embedded Environments📍 In-person @CppCon
📅 Sat & Sun, Sept 13–14
🥗 Lunch included👉 Book now as seats are limited
-
I'm thrilled to let you know that I'll give the workshop Safe and Efficient C++ for Embedded Environments at CppCon
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
I will be speaking at Meeting C++ 2025! Jens did an amazing job bringing the full schedule up in no time! Yes. Meeting C++ is again in December, but you can already see the schedule. My talk's title is "Embedded-Friendly C++: Features That Make a Difference". Come and join me there!
-
How I did speed up the CI build time for C++ Insights
https://andreasfertig.com/blog/2025/06/ci-pipeline-improvments-for-cpp-insights/
-
C++ Insights upgraded to Clang 20 🎉🚀🥳
https://andreasfertig.com/blog/2025/05/cpp-insights-now-uses-clang-20/
-
🎉 🎉 C23 and C++23 are finally joining the quadruple precision club, by bringing a standard way to handle 128-bit floating point numbers!
(FP16 is also here if you need it)Here is hoping that a future Fortran standard will adopt the C_Float128 kind specifier that gcc/gfortran already has as an extension.
https://en.cppreference.com/w/cpp/types/floating-point -
New article is available on C++ Senioreas:
It's just ',' - Comma Operator C++
https://cppsenioreas.wordpress.com/2024/10/21/its-just-comma-the-comma-operator-cpp/#cpp #cppsenioreas #cpp17 #cpp20 #cpp23 #discussion #programming #cppprogramming
-
CW: Явне оголошення this у :cpp_language: 23
У
C++ 23додали можливість явно вказати обʼєкт класу над яким виконується метод в параметрах не статичних і невіртуальних методів.struct X { void foo(this X const& self, int i); // same as void foo(int i) const &; // void foo(int i) const &; // Error: already declared void bar(this X self, int i); // pass object by value: makes a copy of “*this” };За допомоги цієї функціональності можна оновити використання
CRTP.// a CRTP trait struct add_postfix_increment { template<typename Self> auto operator++(this Self&& self, int) { auto tmp = self; // Self deduces to "some_type" ++self; return tmp; } }; struct some_type : add_postfix_increment { some_type& operator++() { ... } };Більше почитати про це можна тут:
#cpp #cpp23 #explicit_this #crtp #this #self #template #шаблони #нововведення
-
Stephan is busy, so I'm on my private "🐞 STL Bug Bash II" as he calls it.
With
* a simple fix in <chrono> 🥲
* a hacky 😦 workaround in <chrono>
* and a compatible (!) attachment in module 'std' of all the entities from the C++ standard library 🙄I can mix #includes and import std from the modularized ms-stl 🎉🚀✨
Gradual adoption of a modularized #cpp20 or #cpp23 standard library is now possible as soon as said issues are fixed and publicly available!
-
Does anyone know why the paper N4937 in the mailing-2023-01 is not accessible ?
N4937
Programming Languages — C++ Extensions for Library Fundamentals, Version 3 Thomas Köppe 2022-12-15 2023-01 WG21The URL is https://www.open-std.org/JTC1/SC22/WG21/prot/14882fdis/n4937.pdf
Anyone knows ?
#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21
-
Does anyone know why the paper N4937 in the mailing-2023-01 is not accessible ?
N4937
Programming Languages — C++ Extensions for Library Fundamentals, Version 3 Thomas Köppe 2022-12-15 2023-01 WG21The URL is https://www.open-std.org/JTC1/SC22/WG21/prot/14882fdis/n4937.pdf
Anyone knows ?
#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21
-
Despite a global pandemic, C++23 has shipped exactly on time and at high quality.
Herb Sutter's insightful trip report
https://herbsutter.com/2023/02/13/c23-pandemic-edition-is-complete-trip-report-winter-iso-c-standards-meeting-issaquah-wa-usa/#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21
-
Despite a global pandemic, C++23 has shipped exactly on time and at high quality.
Herb Sutter's insightful trip report
https://herbsutter.com/2023/02/13/c23-pandemic-edition-is-complete-trip-report-winter-iso-c-standards-meeting-issaquah-wa-usa/#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21
-
Despite a global pandemic, C++23 has shipped exactly on time and at high quality.
Herb Sutter's insightful trip report
https://herbsutter.com/2023/02/13/c23-pandemic-edition-is-complete-trip-report-winter-iso-c-standards-meeting-issaquah-wa-usa/#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21
-
Despite a global pandemic, C++23 has shipped exactly on time and at high quality.
Herb Sutter's insightful trip report
https://herbsutter.com/2023/02/13/c23-pandemic-edition-is-complete-trip-report-winter-iso-c-standards-meeting-issaquah-wa-usa/#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21
-
Despite a global pandemic, C++23 has shipped exactly on time and at high quality.
Herb Sutter's insightful trip report
https://herbsutter.com/2023/02/13/c23-pandemic-edition-is-complete-trip-report-winter-iso-c-standards-meeting-issaquah-wa-usa/#cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21