aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Moene <martin.moene@gmail.com>2016-09-17 09:24:34 +0200
committerMartin Moene <martin.moene@gmail.com>2016-09-17 09:24:34 +0200
commit6cf154e067550440e9580cad0744afd12e1ccafd (patch)
tree6b3f6b0d28d57783d42c5f8684325aa1b1c4cd8f
parentad991370daccc087f4dca8c239df413c45e5ec2f (diff)
downloadplatform_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_byte2
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>