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.
AI-written summary, checked against the cited sources. How summaries work