From e5e105013ae926b0f39c45147b924039e3a039a1 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 28 Jul 2015 22:53:24 +0300 Subject: [PATCH] Fix shadow warning for name variable (svn #11503) --- include/boost/type_index/type_index_facade.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/type_index/type_index_facade.hpp b/include/boost/type_index/type_index_facade.hpp index e0e0a4a..931dedc 100644 --- a/include/boost/type_index/type_index_facade.hpp +++ b/include/boost/type_index/type_index_facade.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2013-2014. +// Copyright (c) Antony Polukhin, 2013-2015. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -105,8 +105,8 @@ public: /// \return Hash code of a type. By default hashes types by raw_name(). /// \note has to be included if this function is used. inline std::size_t hash_code() const BOOST_NOEXCEPT { - const char* const name = derived().raw_name(); - return boost::hash_range(name, name + std::strlen(name)); + const char* const name_raw = derived().raw_name(); + return boost::hash_range(name_raw, name_raw + std::strlen(name_raw)); } #if defined(BOOST_TYPE_INDEX_DOXYGEN_INVOKED)