following this question , I am trying to avoid copy-pasting some code related to calling all of the same-named methods of the mixins of the class BaseSensor.
BaseSensor
If you can use c++1z fold expressions would probably be the shortest way:
template class BaseSensor : public SensorType ... //to my BaseSensor class { public: void update() { (SensorType::update(),...); } void printStats() { (SensorType::printStats(),...); } };