aboutsummaryrefslogtreecommitdiffstats
path: root/common/albyte.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/albyte.h')
-rw-r--r--common/albyte.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/albyte.h b/common/albyte.h
index 798d136d..23864636 100644
--- a/common/albyte.h
+++ b/common/albyte.h
@@ -13,7 +13,7 @@ namespace al {
*/
enum class byte : unsigned char { };
-#define REQUIRES(...) typename std::enable_if<(__VA_ARGS__),int>::type = 0
+#define REQUIRES(...) typename std::enable_if<(__VA_ARGS__),bool>::type = true
template<typename T, REQUIRES(std::is_integral<T>::value)>
inline constexpr T to_integer(al::byte b) noexcept { return T(b); }