mirror of
https://github.com/microsoft/GSL.git
synced 2025-05-13 01:15:18 -04:00
Fix to_integer()
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user