From da6df7db8a87a6a690c8faf8c89cdb1c3f987f78 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Mon, 6 Apr 2020 13:07:44 +0200 Subject: [PATCH] Try to solve the C++11 static asserts --- src/sfizz/SfzHelpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfizz/SfzHelpers.h b/src/sfizz/SfzHelpers.h index fb1d0636..838ac863 100644 --- a/src/sfizz/SfzHelpers.h +++ b/src/sfizz/SfzHelpers.h @@ -27,7 +27,7 @@ template struct CCData { int cc; ValueType data; - static_assert(config::numCCs - 1 < std::numeric_limits::max()); + static_assert(config::numCCs - 1 < std::numeric_limits::max(), "The cc type in the CCData struct cannot support the required number of CCs"); }; struct Modifier { @@ -35,7 +35,7 @@ struct Modifier { uint8_t curve { 0 }; uint8_t steps { 0 }; uint8_t smooth { 0 }; - static_assert(config::maxCurves - 1 <= std::numeric_limits::max()); + static_assert(config::maxCurves - 1 <= std::numeric_limits::max(), "The curve type in the Modifier struct cannot support the required number of curves"); }; template