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

Subobject Polymorphic Overlay Pattern -- Félix-Olivier Dumas

calendar_today November 11, 2026 person Félix-Olivier Dumas domain cplusplus

In this article, I explore the Subobject Polymorphic Overlay Pattern (SPO), an experimental architectural idiom that inverts the classic contract model of static polymorphism. Instead of the implementation inheriting from an interface, the interface becomes a clean, selective view over an independent implementation. The result is zero-overhead compile-time polymorphism that avoids some of the usual drawbacks of traditional CRTP and std::variant based approaches, while still remaining explicit about its trade-offs and experimental nature.

open_in_new Read original post