From bc70a93bba6c6f63486df55295145d043604a228 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Mon, 12 Sep 2016 19:06:45 -0700 Subject: [PATCH] Removed unnecessary reinterpret_cast<> from span implementation. --- gsl/span | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsl/span b/gsl/span index cce8253..d2e16dc 100644 --- a/gsl/span +++ b/gsl/span @@ -420,7 +420,7 @@ public: details::is_allowed_extent_conversion::value && details::is_allowed_element_type_conversion::value>> constexpr span(const span& other) - : storage_(reinterpret_cast(other.data()), + : storage_(static_cast(other.data()), details::extent_type(other.size())) { } @@ -431,7 +431,7 @@ public: details::is_allowed_extent_conversion::value && details::is_allowed_element_type_conversion::value>> constexpr span(span&& other) - : storage_(reinterpret_cast(other.data()), + : storage_(static_cast(other.data()), details::extent_type(other.size())) { }