From a70cd7396ab4049956142620e3e43e5d406ca63f Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Tue, 10 Mar 2009 18:07:38 +0000 Subject: [PATCH] BOOST_TYPEOF_NESTED_TYPEDEF now supports expressions containing "this" for VC compilers [SVN r51687] --- include/boost/typeof/msvc/typeof_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/typeof/msvc/typeof_impl.hpp b/include/boost/typeof/msvc/typeof_impl.hpp index 9243a2b..3bc2ca7 100644 --- a/include/boost/typeof/msvc/typeof_impl.hpp +++ b/include/boost/typeof/msvc/typeof_impl.hpp @@ -211,14 +211,14 @@ namespace boost # define BOOST_TYPEOF_NESTED_TYPEDEF_TPL(name,expr) \ struct name {\ - BOOST_STATIC_CONSTANT(int,_typeof_register_value=sizeof(boost::type_of::typeof_register_type(expr)));\ + enum {_typeof_register_value=sizeof(boost::type_of::typeof_register_type(expr))};\ typedef typename boost::type_of::msvc_extract_type::id2type id2type;\ typedef typename id2type::type type;\ }; # define BOOST_TYPEOF_NESTED_TYPEDEF(name,expr) \ struct name {\ - BOOST_STATIC_CONSTANT(int,_typeof_register_value=sizeof(boost::type_of::typeof_register_type(expr)));\ + enum {_typeof_register_value=sizeof(boost::type_of::typeof_register_type(expr))};\ typedef boost::type_of::msvc_extract_type::id2type id2type;\ typedef id2type::type type;\ };