C++26: std::polymorphic -- Sandor Dargo
C++26’s std::polymorphic brings value semantics to polymorphic objects, eliminating much of the boilerplate traditionally required with std::unique_ptr. It enables deep copying while preserving dynamic types—without virtual clone() methods or hand-written copy operations. C++26: std::polymorphic by…
Sources
- T1C++26: std::polymorphic -- Sandor DargoLanguage blogs: Rust / Go / TypeScript / Swift / Kotlin / Java / .NET / Ruby / PHP / Elixir / ISO C++