From 624f014dec5b627a22ae948d5b921775aea5d5fc Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Tue, 10 Mar 2020 17:54:28 +0100 Subject: [PATCH] absl's type traits --- src/sfizz/Opcode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sfizz/Opcode.h b/src/sfizz/Opcode.h index 7edbe9ac..c510f5a8 100644 --- a/src/sfizz/Opcode.h +++ b/src/sfizz/Opcode.h @@ -11,6 +11,7 @@ #include "SfzHelpers.h" #include "StringViewHelpers.h" #include +#include "absl/meta/type_traits.h" #include #include #include @@ -45,7 +46,7 @@ struct Opcode { * @param validRange the range of admitted values * @return absl::optional the cast value, or null */ -template ::value, int>::type = 0> +template ::value, int> = 0> inline absl::optional readOpcode(absl::string_view value, const Range& validRange) { int64_t returnedValue; @@ -74,7 +75,7 @@ inline absl::optional readOpcode(absl::string_view value, const Range * @param validRange the range of admitted values * @return absl::optional the cast value, or null */ -template ::value, int>::type = 0> +template ::value, int> = 0> inline absl::optional readOpcode(absl::string_view value, const Range& validRange) { float returnedValue;