gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 4abc0de166fa630a1029f6915ded69fa98d1a26f
parent 3e27a5b19ed42b2e75b749edd3fabe3a3a63b84a
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Fri, 31 May 2024 00:59:40 +0200

use typedef for our event tuple

Diffstat:
Msource/jucePluginLib/event.h | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/source/jucePluginLib/event.h b/source/jucePluginLib/event.h @@ -11,6 +11,7 @@ namespace pluginLib public: using ListenerId = size_t; using Callback = std::function<void(const Ts&...)>; + using MyTuple = std::tuple<std::decay_t<Ts>...>; static constexpr ListenerId InvalidListenerId = ~0; @@ -69,7 +70,7 @@ namespace pluginLib { invoke(_args...); m_hasRetainedValue = true; - m_retainedValue = std::tuple<Ts...>(_args...); + m_retainedValue = MyTuple(_args...); } void clearRetained() @@ -81,7 +82,7 @@ namespace pluginLib std::map<ListenerId, Callback> m_listeners; bool m_hasRetainedValue = false; - std::tuple<std::remove_reference_t<Ts>...> m_retainedValue; + MyTuple m_retainedValue; }; template<typename ...Ts>