Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51687 - trunk/boost/typeof/msvc
From: peder.holt_at_[hidden]
Date: 2009-03-10 14:07:40


Author: burbelgruff
Date: 2009-03-10 14:07:38 EDT (Tue, 10 Mar 2009)
New Revision: 51687
URL: http://svn.boost.org/trac/boost/changeset/51687

Log:
BOOST_TYPEOF_NESTED_TYPEDEF now supports expressions containing "this" for VC compilers
Text files modified:
   trunk/boost/typeof/msvc/typeof_impl.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/typeof/msvc/typeof_impl.hpp
==============================================================================
--- trunk/boost/typeof/msvc/typeof_impl.hpp (original)
+++ trunk/boost/typeof/msvc/typeof_impl.hpp 2009-03-10 14:07:38 EDT (Tue, 10 Mar 2009)
@@ -211,14 +211,14 @@
 
 # define BOOST_TYPEOF_NESTED_TYPEDEF_TPL(name,expr) \
     struct name {\
- BOOST_STATIC_CONSTANT(int,_typeof_register_value=sizeof(boost::type_of::typeof_register_type<name>(expr)));\
+ enum {_typeof_register_value=sizeof(boost::type_of::typeof_register_type<name>(expr))};\
         typedef typename boost::type_of::msvc_extract_type<name>::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<name>(expr)));\
+ enum {_typeof_register_value=sizeof(boost::type_of::typeof_register_type<name>(expr))};\
         typedef boost::type_of::msvc_extract_type<name>::id2type id2type;\
         typedef id2type::type type;\
     };


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk