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:
parent
2b3abd3ca6
commit
9979dd27fa
1 changed files with 6 additions and 0 deletions
|
|
@ -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>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue