How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

On forcing all derived classes to implement a specific non-virtual method, part 2 -- Raymond Chen

calendar_today November 20, 2026 person Blog Staff domain cplusplus

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 technique works in C++/WinRT but not C++/WRL. On forcing all derived classes to implement a specific non-virtual method, part 2 by Raymond Chen From the article: Last time, we observed that one way to force all derived classes to implement a specific non-virtual method is simply not to implement it i

open_in_new Read original post