1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Add a const specialisation to SampleTypeHelpers

This commit is contained in:
Tom Poole 2022-01-05 11:38:22 +00:00
parent 2b3abd3ca6
commit 9979dd27fa

View file

@ -37,6 +37,12 @@ namespace SampleTypeHelpers // Internal classes needed for handling sample type
using Type = T;
};
template <typename T>
struct ElementType<const T, false>
{
using Type = const typename T::value_type;
};
template <typename T>
struct ElementType<T, false>
{