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;\ };