C++ mixin