DigiNews

Tech Watch by Johan Denoyer

← Back to articles

C++26: constexpr virtual inheritance

Quality: 8/10 Relevance: 9/10

Summary

The post explains how P3533R2 lifts the restriction on constexpr for types with virtual bases, enabling compile-time construction and constexpr member functions in such hierarchies. It reviews virtual inheritance, outlines the changes in the proposal, and argues why this matters for the standard library (notably iostreams) and for evolving constexpr support. The author frames constexpr as an evaluation-criterion rather than a fixed set of syntactic limits.

🚀 Service construit par Johan Denoyer