Removed cassert

This commit is contained in:
Paul Ferrand 2020-02-09 13:47:54 +01:00
parent 00c3af6881
commit d353ec1463

View file

@ -15,7 +15,6 @@
#include "Config.h" #include "Config.h"
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <cassert>
#include <random> #include <random>
template<class T> template<class T>
@ -128,9 +127,9 @@ inline float midiNoteFrequency(const int noteNumber)
template<class T> template<class T>
constexpr T clamp( T v, T lo, T hi ) constexpr T clamp( T v, T lo, T hi )
{ {
v = std::min(v, hi); v = std::min(v, hi);
v = std::max(v, lo); v = std::max(v, lo);
return v; return v;
} }
template<int Increment = 1, class T> template<int Increment = 1, class T>