Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeinhaerter <34543625+beinhaerter@users.noreply.github.com>2020-10-20 01:44:02 +0300
committerGitHub <noreply@github.com>2020-10-20 01:44:02 +0300
commitdc6fdff4c070935d45d51ba19a049728eaf8e086 (patch)
tree05421ecab737585e075bb577eec55557d8c7a846
parent2ccf36b4b9bb0311c38947fa7accaf7661d13013 (diff)
Update include/gsl/span
Co-authored-by: Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>
-rw-r--r--include/gsl/span2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gsl/span b/include/gsl/span
index 6015d85..c2e0135 100644
--- a/include/gsl/span
+++ b/include/gsl/span
@@ -434,7 +434,7 @@ public:
template <std::size_t MyExtent = Extent, std::enable_if_t<MyExtent != dynamic_extent, int> = 0>
constexpr explicit span(pointer firstElem, pointer lastElem) noexcept
- : storage_(firstElem, gsl::narrow_cast<std::size_t>(lastElem - firstElem))
+ : storage_(firstElem, narrow_cast<std::size_t>(lastElem - firstElem))
{
Expects(lastElem - firstElem == static_cast<difference_type>(Extent));
}