diff options
author | Chris Robinson <[email protected]> | 2019-09-20 10:59:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-20 10:59:12 -0700 |
commit | 79a621ac47e01ad886bc7b4284e514d736650e6d (patch) | |
tree | 50b3efb5b28b96281c56dfc503858ad587004706 /common/albyte.h | |
parent | b9daffe1590b12b103f9706dfb0a440b629f3c49 (diff) |
Simplify some REQUIRES uses
Diffstat (limited to 'common/albyte.h')
-rw-r--r-- | common/albyte.h | 2 |
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); } |