From 5dbffe0eb728305e92f58a3c18419e89eda0ec4d Mon Sep 17 00:00:00 2001 From: Richard Powell Date: Sun, 22 Nov 2015 12:32:56 -0800 Subject: [PATCH] Fixing up shadowed variable. --- include/span.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/span.h b/include/span.h index 0c67d22..f694df5 100644 --- a/include/span.h +++ b/include/span.h @@ -507,7 +507,7 @@ namespace details struct TypeListIndexer { const TypeChain & obj; - TypeListIndexer(const TypeChain & obj) :obj(obj){} + TypeListIndexer(const TypeChain & obj_) :obj(obj_){} template const TypeChain & getObj(std::true_type) { @@ -814,8 +814,8 @@ public: using index_type = value_type; using index_size_type = typename IndexType::value_type; template - explicit bounds_iterator(const Bounds& bnd, value_type curr) noexcept - : boundary(bnd.index_bounds()), curr(std::move(curr)) + explicit bounds_iterator(const Bounds& bnd, value_type curr_) noexcept + : boundary(bnd.index_bounds()), curr(std::move(curr_)) { static_assert(is_bounds::value, "Bounds type must be provided"); }