Compile-time Interface Composition Through Inheritance

In my DSP framework I recently had the need for a generic Interface type, that could have a set of member functions based on the underlying storage type. After much pondering, I remembered a brilliant video by Jason Turner, that showcased how to inherit from lambdas which in turn reminded me of the mixin pattern. What if I could just inherit from a template type Which indeed you can… Behold, the Interface struct....

December 19, 2022 · 3 min