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…

dev

Sources