Fix to_integer()

This commit is contained in:
Martin Moene 2016-09-17 09:24:34 +02:00
parent ad991370da
commit 6cf154e067

View File

@ -103,7 +103,7 @@ inline constexpr byte operator~(byte b) noexcept { return byte(~static_cast<unsi
template <class IntegerType, class = std::enable_if_t<std::is_integral<IntegerType>::value>>
inline constexpr IntegerType to_integer(byte b) noexcept
{
return {b};
return static_cast<IntegerType>(b);
}
template<bool E, typename T>