Top stories

  1. EDG is now open source. Here’s what comes next -- Harry Bott

    EDG, one of the four major C++ compiler front-ends, is now open source under the Apache 2.0 license with LLVM exceptions. The permissive license allows commercial use, including incorporating EDG into proprietary products. EDG offers experimental support for C++26 reflection. John Spicer and the EDG team led the transition, EDG engineers are the initial maintainers, and Spicer chairs a Fiscal Sponsorship Committee that will include C++ veterans from the user community.

Latest

  1. Image: isocpp.org

    Move in C++ without a std::move -- Andreas Fertig

    C++ trainer Andreas Fertig follows up his advice to use std::move only rarely with an article on getting moves and best performance by default without it. He argues unnecessary copy operations are a major performance enemy and that return value optimization (RVO) should be the goal, since the returned object is created at the call site, avoiding both copy and move. Returning a braced temporary gets guaranteed copy elision since C++17, while named return value optimization (NRVO) is not guaranteed but usually avoids the cost too.

  2. On forcing all derived classes to implement a specific non-virtual method, part 2 -- Raymond Chen

    Raymond Chen continues his series on forcing derived C++ classes to implement a specific non-virtual method, showing how declaring the method as deleted in the base class steers developers to a clearer compiler error. Leaving the method unimplemented triggers errors whose real cause is often buried in supplementary error information. Chen also examines C++26's new custom diagnostic messages for deleted functions and their compiler support, and explains why the technique works in C++/WinRT but not in C++/WRL.

  3. On forcing all derived classes to implement a specific non-virtual method, part 1 -- Raymond Chen

    Raymond Chen has published the first part of a series on forcing derived C++ classes to implement a required non-virtual method without relying on comments or runtime assertions. The approach leaves the method unimplemented in the base class, so a missing implementation is caught at compile time. Chen illustrates it with a OneWayConverter base class for IValueConverter that fails ConvertBack() and requires derived classes to supply Convert(), showing how C++/WRL, C++/WinRT and plain C++ each handle the case.

  4. Image: isocpp.org

    Welcome Hudson River Trading as a Gold Sponsor of the Standard C++ Foundation

    The Standard C++ Foundation has added Hudson River Trading (HRT) as a Gold Sponsor. HRT is a global quantitative trading firm that uses advanced mathematics, technology and high-performance software, including C++, to build automated trading systems. The Foundation supports the development, adoption and evolution of the C++ programming language, and says its sponsors help fund that work and strengthen the global C++ community.

  5. C++26: std::inplace_vector -- Sandor Dargo

    Sandor Dargo examines std::inplace_vector, a new C++26 container offering vector-like dynamic resizing with compile-time fixed capacity and element storage held inside the container object, with no dynamic allocation. The article covers its API, overflow-handling options, performance considerations and comparisons with std::vector and std::array. The container was introduced by P0843R14 and refined by later C++26 papers including P3981R2, P4022R0 and P3074R7, targeting bare-metal, latency-sensitive and serialization use cases.

  6. Meeting C++ 2026 is next week!

    Meeting C++ 2026, organized by Jens Weller, takes place as a hybrid event in Berlin and online from 26 to 28 November 2026. Tickets remain available for both online and onsite attendance. As in the previous year, attendees can join on location in Berlin, while the program also includes content offered exclusively online or exclusively onsite.

  7. Where to Put [[nodiscard]]: A Silent Trap with MSVC! -- Giovanni Dicanio

    Giovanni Dicanio describes a subtle bug involving the C++ [[nodiscard]] attribute and Microsoft's MSVC compiler, where placing the attribute in the wrong position can silently fail to provide the expected protection. He warns that this kind of false sense of security is among the worst things that can happen in software.

  8. Image: isocpp.org

    simdjson 5.0 with full C++26 reflection support -- Daniel Lemire

    Daniel Lemire and the simdjson team have released simdjson 5.0, making C++26 static reflection an officially supported, no longer guarded feature. When a compiler has reflection enabled, such as GCC 16 with -std=c++26 -freflection, the library detects it automatically and exposes reflection-based functions. Version 5.0 adds annotations for automated serialization and deserialization, including rename, rename_all, alias, skip, default_value, flatten, deny_unknown_fields and transparent. The C++ JSON library is used in Node.js, ClickHouse, Meta Velox, StarRocks, Apache Doris and Ladybird.

  9. C++26: std::constant_wrapper -- Sandor Dargo

    Sandor Dargo explains std::constant_wrapper and its shorthand std::cw, a C++26 utility for keeping compile-time values constant across function boundaries. In current C++, a constexpr value passed as a function parameter is no longer a constant expression inside the function body, forcing workarounds such as template parameters, tag types or std::integral_constant. The feature, from P2781R9 by Hana Dusíková, Matthias Kretz and Zach Laine and refined by P3978R3, wraps any structural type as a non-type template parameter and supports compile-time arithmetic and function calls.

  10. Image: isocpp.org

    Microsoft CppCon 2026 Trip Report -- Michael Price

    Microsoft's Michael Price recaps the company's week at CppCon 2026 in Aurora, Colorado. At its booth, the team met developers working on games, financial systems, developer tools, embedded and scientific software, with frequent topics including debugging, performance, build systems and modern C++. A growing number of attendees were experimenting with AI assistance, and those completing Microsoft's annual C++ survey entered a daily LEGO raffle.

  11. Image: isocpp.org

    Trip report: CppCon 2026 -- Sandor Dargo

    Sandor Dargo published his trip report from CppCon 2026, his second year attending and speaking at the conference. He shared 21 LinkedIn posts, attended 24 sessions and gave 3 talks. He puts the most weight on the human connections at the largest C++ conference, including meeting fellow presenter Alex Dathskovsky during a layover in Munich before they took the same flight to Denver.

  12. Terrible tips for a C++ developer: 2026 edition, Part 1

    Andrey Karpov has begun publishing parts of the second edition of his book "Terrible tips for a C++ developer," which contains 60 tips developers should not follow. Each tip comes with an explanation of why it is bad and a look at its less obvious aspects. The first part includes a tip mocking the idea of skipping C++ learning in favor of vibe coding with generative AI. The series targets beginners while highlighting C++ quirks for experienced developers.

  13. Type punning done right -- Mateusz Pusz

    Mateusz Pusz's fourth article in a series on C++ fundamentals covers cases where reinterpret_cast is well-defined. It walks through reading an object's bytes via char, unsigned char or std::byte, aliasing through a signed/unsigned pair, converting between a struct and its first member, and round-tripping a pointer through std::uintptr_t. Reading an object representation as bytes underpins serialization, hashing and hex dumps.

  14. Subobject Polymorphic Overlay Pattern -- Félix-Olivier Dumas

    Félix-Olivier Dumas describes the Subobject Polymorphic Overlay Pattern (SPO), an experimental C++ idiom for static polymorphism. Rather than having the implementation inherit from an interface, the interface acts as a selective view over an independent implementation. The goal is zero-overhead compile-time polymorphism that avoids some drawbacks of CRTP and std::variant approaches, with trade-offs stated explicitly.

  15. Compile-Time Policy Composition for Password Validation -- Daniel Gómez Vergel

    Daniel Gómez Vergel presents a C++ password validator configured at compile time by composing independent validation policies. Rather than using dynamic polymorphism and the Decorator pattern at runtime, the design makes the validator configuration part of the type itself. The example demonstrates policy-based design, concepts and newer language features such as template for expansions.

  16. Your buffer is not a struct yet -- Mateusz Pusz

    In the third part of his series on C++ rules that experienced developers get wrong, Mateusz Pusz examines when casting a byte buffer to a struct is undefined behavior. The answer depends on whether the type is implicit-lifetime and whether an operation such as a std::byte array, operator new, std::malloc, std::memcpy or std::bit_cast implicitly created the object. Otherwise he recommends C++23's std::start_lifetime_as, placement new or std::construct_at.

  17. C++26: std::polymorphic -- Sandor Dargo

    Sandor Dargo explains std::polymorphic, part of C++26 proposal P3019R14 alongside std::indirect. The type owns a heap-allocated object whose dynamic type may be T or any class derived from T. Copying it performs a type-erased deep copy that preserves the dynamic type, which avoids slicing. This removes the need for virtual clone() methods and hand-written copy operations that std::unique_ptr-based designs require.

  18. Image: isocpp.org

    C++26: Standard Library Hardening Experiments -- Bartlomiej Filipek

    Bartlomiej Filipek explores C++26 Standard Library hardening, which helps catch common programming errors that previously led to undefined behaviour. The article covers how hardening works, which library operations it applies to, and how the major compilers are implementing it. It uses std::vector as an example, contrasting the unchecked operator[] with .at(), which may throw std::out_of_range.

  19. C++26: std::indirect -- Sandor Dargo

    Sandor Dargo examines std::indirect, one of two vocabulary types added in C++26 through P3019R14 by Coe, Peacock and Parent. std::indirect gives a dynamically allocated object value semantics, with deep copying, const propagation and value-based comparison that avoid boilerplate needed with std::unique_ptr. Its sibling, std::polymorphic, provides similar semantics for objects of classes derived from T. The two types originated as separate proposals, P1950 and P0201.