diff options
Diffstat (limited to 'gsl/gsl_byte')
-rw-r--r-- | gsl/gsl_byte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsl/gsl_byte b/gsl/gsl_byte index ab5e4e3..9962ab4 100644 --- a/gsl/gsl_byte +++ b/gsl/gsl_byte @@ -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> |