From 2dc5bcc80c6efdb43abc390fb4ef6f24221a9e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Thu, 11 Dec 2014 07:47:58 +0100 Subject: [PATCH] Fix: clang trunk: "error: declaration of T shadows template parameter" Regression introduced by 0871200fcfdacfd7bd7340e07a06d3f9d8e8dab3 --- include/boost/test/utils/is_forward_iterable.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/test/utils/is_forward_iterable.hpp b/include/boost/test/utils/is_forward_iterable.hpp index 82b2dd17..2d7e3a46 100755 --- a/include/boost/test/utils/is_forward_iterable.hpp +++ b/include/boost/test/utils/is_forward_iterable.hpp @@ -76,7 +76,7 @@ namespace ut_detail { struct has_member_size { private: struct nil_t; - template static auto test(T*) -> decltype( boost::declval().size() ); + template static auto test(U*) -> decltype( boost::declval().size() ); template static nil_t test(...); public: @@ -87,7 +87,7 @@ namespace ut_detail { struct has_member_begin { private: struct nil_t; - template static auto test(T*) -> decltype( boost::declval().begin() ); + template static auto test(U*) -> decltype( boost::declval().begin() ); template static nil_t test(...); public: static bool const value = !std::is_same< decltype(test(nullptr)), nil_t>::value;