On forcing all derived classes to implement a specific non-virtual method, part 2 -- Raymond Chen
Building on the previous article, Raymond Chen explores how deleted functions can produce clearer compiler errors when derived classes fail to implement required non-virtual methods. He also examines C++26’s new custom diagnostic messages for deleted functions, their compiler support, and why this…
Sources
- T1On forcing all derived classes to implement a specific non-virtual method, part 2 -- Raymond ChenLanguage blogs: Rust / Go / TypeScript / Swift / Kotlin / Java / .NET / Ruby / PHP / Elixir / ISO C++