From 9979dd27fa32fec276e7a32594941880cdd63b34 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 5 Jan 2022 11:38:22 +0000 Subject: [PATCH] Add a const specialisation to SampleTypeHelpers --- modules/juce_dsp/containers/juce_AudioBlock.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/juce_dsp/containers/juce_AudioBlock.h b/modules/juce_dsp/containers/juce_AudioBlock.h index b3a005fd5b..7fa027e509 100644 --- a/modules/juce_dsp/containers/juce_AudioBlock.h +++ b/modules/juce_dsp/containers/juce_AudioBlock.h @@ -37,6 +37,12 @@ namespace SampleTypeHelpers // Internal classes needed for handling sample type using Type = T; }; + template + struct ElementType + { + using Type = const typename T::value_type; + }; + template struct ElementType {