diff options
author | Martin Moene <martin.moene@gmail.com> | 2016-09-17 09:24:34 +0200 |
---|---|---|
committer | Martin Moene <martin.moene@gmail.com> | 2016-09-17 09:24:34 +0200 |
commit | 6cf154e067550440e9580cad0744afd12e1ccafd (patch) | |
tree | 6b3f6b0d28d57783d42c5f8684325aa1b1c4cd8f | |
parent | ad991370daccc087f4dca8c239df413c45e5ec2f (diff) | |
download | platform_external_Microsoft-GSL-6cf154e067550440e9580cad0744afd12e1ccafd.tar.gz platform_external_Microsoft-GSL-6cf154e067550440e9580cad0744afd12e1ccafd.tar.bz2 platform_external_Microsoft-GSL-6cf154e067550440e9580cad0744afd12e1ccafd.zip |
Fix to_integer()
-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> |