From a5f37f709b0c62253283f0122ea688a9e92b312e Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Fri, 22 Nov 2019 18:08:43 +0100 Subject: [PATCH] Changed is_const_v to is_const --- sfizz/AudioSpan.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sfizz/AudioSpan.h b/sfizz/AudioSpan.h index e8290edd..4c02106a 100644 --- a/sfizz/AudioSpan.h +++ b/sfizz/AudioSpan.h @@ -277,7 +277,7 @@ public: */ void fill(Type value) noexcept { - static_assert(!std::is_const_v, "Can't allow mutating operations on const AudioSpans"); + static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans"); for (int i = 0; i < numChannels; ++i) sfz::fill(getSpan(i), value); } @@ -289,7 +289,7 @@ public: */ void applyGain(absl::Span gain) noexcept { - static_assert(!std::is_const_v, "Can't allow mutating operations on const AudioSpans"); + static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans"); for (int i = 0; i < numChannels; ++i) sfz::applyGain(gain, getSpan(i)); } @@ -301,7 +301,7 @@ public: */ void applyGain(Type gain) noexcept { - static_assert(!std::is_const_v, "Can't allow mutating operations on const AudioSpans"); + static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans"); for (int i = 0; i < numChannels; ++i) sfz::applyGain(gain, getSpan(i)); } @@ -315,7 +315,7 @@ public: template > void add(AudioSpan& other) { - static_assert(!std::is_const_v, "Can't allow mutating operations on const AudioSpans"); + static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans"); ASSERT(other.getNumChannels() == numChannels); if (other.getNumChannels() == numChannels) { for (int i = 0; i < numChannels; ++i) @@ -332,7 +332,7 @@ public: template > void copy(AudioSpan& other) { - static_assert(!std::is_const_v, "Can't allow mutating operations on const AudioSpans"); + static_assert(!std::is_const::value, "Can't allow mutating operations on const AudioSpans"); ASSERT(other.getNumChannels() == numChannels); if (other.getNumChannels() == numChannels) { for (int i = 0; i < numChannels; ++i)