diff --git a/hi_dsp_library/dsp_nodes/RoutingNodes.h b/hi_dsp_library/dsp_nodes/RoutingNodes.h index 1caa71054f..db15c4d90c 100644 --- a/hi_dsp_library/dsp_nodes/RoutingNodes.h +++ b/hi_dsp_library/dsp_nodes/RoutingNodes.h @@ -1231,7 +1231,9 @@ template struct global_cable_cpp_manager: private advanced_tupl template void setGlobalCableValue(double value) { - this->get<(int)CableIndex>().template setValue(value); + static constexpr int Idx = static_cast(CableIndex); + auto& c = this->template get(); + c.setValue(value); } private: