From f4ed6f7f109175de30f55a6d6b1ab044c09b780e Mon Sep 17 00:00:00 2001 From: Christoph Hart <> Date: Sat, 5 Oct 2024 22:53:10 +0200 Subject: [PATCH] - fix compilation on macOS (again) --- hi_dsp_library/dsp_nodes/RoutingNodes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: