summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorNino Miškić-Pletenac <nino.mip@gmail.com>2019-01-20 16:23:40 +0100
committerNino Miškić-Pletenac <nino.mip@gmail.com>2019-01-20 16:23:40 +0100
commit667370a26419ecdcdc31586719868f1d03440118 (patch)
tree0e251e7055317eb0b3c88d7371fbbef8e3808b04 /src/util/math.h
parent9250a74f490359fce7948e39c1d59b6c3d1523b8 (diff)
Try to fix build on Windows and macOS
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/math.h b/src/util/math.h
index 79e5c24849..874a41c3d3 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -75,7 +75,7 @@ inline double roundToFraction(double value, int denominator) {
}
template <typename T>
-inline constexpr T ratio2db(const T a) {
+inline const T ratio2db(const T a) {
static_assert(std::is_same<float, T>::value ||
std::is_same<double, T>::value ||
std::is_same<long double, T>::value,
@@ -84,7 +84,7 @@ inline constexpr T ratio2db(const T a) {
}
template <typename T>
-inline constexpr T db2ratio(const T a) {
+inline const T db2ratio(const T a) {
static_assert(std::is_same<float, T>::value ||
std::is_same<double, T>::value ||
std::is_same<long double, T>::value,