From 98247fb97fac82c0af8d27bc03f02bff2dc299bd Mon Sep 17 00:00:00 2001 From: "Damien Buhl (alias daminetreg)" Date: Wed, 21 Jan 2015 00:28:13 +0100 Subject: [PATCH] =?UTF-8?q?BUGFIX:=C2=A0MSVC=20doesn't=20accept=20typename?= =?UTF-8?q?=20to=20specify=20a=20dependent=20scope=20within=20template=20s?= =?UTF-8?q?pecialization=20in=20C++03=20as=20standard=20specify=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also works on GCC 4.6, 4.8.2 and 4.9 in C++11 and C++03, I needlessly added this during some debugging where the compiler was telling me to do so. I shouldn't have followed it's advice, as this breaks compatibility with other compilers. --- .../boost/fusion/adapted/adt/detail/adapt_base.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/boost/fusion/adapted/adt/detail/adapt_base.hpp b/include/boost/fusion/adapted/adt/detail/adapt_base.hpp index b9126c94..0c1cebd0 100644 --- a/include/boost/fusion/adapted/adt/detail/adapt_base.hpp +++ b/include/boost/fusion/adapted/adt/detail/adapt_base.hpp @@ -54,12 +54,12 @@ ATTRIBUTE, ATTRIBUTE_TUPEL_SIZE, 1)) type; \ }; \ \ - typedef typename boost::remove_const< \ - typename deduced_attr_type::type \ + typedef boost::remove_const< \ + deduced_attr_type::type \ >::type type; \ \ - typedef typename boost::add_const< \ - typename deduced_attr_type::type \ + typedef boost::add_const< \ + deduced_attr_type::type \ >::type const_type; #define BOOST_FUSION_ADT_ATTRIBUTE_GIVENTYPE( \ @@ -126,7 +126,7 @@ , true \ > \ { \ - typedef typename access::adt_attribute_access< \ + typedef access::adt_attribute_access< \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \ , I \ >::const_type type; \ @@ -165,7 +165,7 @@ , false \ > \ { \ - typedef typename access::adt_attribute_access< \ + typedef access::adt_attribute_access< \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \ , I \ >::type type; \ @@ -215,7 +215,7 @@ , I \ > \ { \ - typedef typename \ + typedef \ adt_attribute_proxy< \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \ , I \