I use a template with an enum argument to provide specialized methods for output from my code.
template <Device::devEnum d> struct sensorOutput; template<> struct sensorOutput <Device::DEVICE1> { void setData(Objects& objs) {
Now I want to add another sensor, similar to DEVICE1, which will output speed and position.
Is there a way to establish several specializations? I tried
template <> struct sensorOutput <Device::DEVICE1 d> struct sensorOutput <Device::DEVICE3 d> { void setData() {
source share