Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51942 - trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2009-03-23 12:59:47


Author: ramey
Date: 2009-03-23 12:59:46 EDT (Mon, 23 Mar 2009)
New Revision: 51942
URL: http://svn.boost.org/trac/boost/changeset/51942

Log:
fix static warning when /Za option is used with MSVC
Text files modified:
   trunk/boost/serialization/static_warning.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/serialization/static_warning.hpp
==============================================================================
--- trunk/boost/serialization/static_warning.hpp (original)
+++ trunk/boost/serialization/static_warning.hpp 2009-03-23 12:59:46 EDT (Mon, 23 Mar 2009)
@@ -162,12 +162,12 @@
      // VC6; __LINE__ macro broken when -ZI is used see Q199057, so
      // non-conforming workaround is used.
 # define BOOST_STATIC_WARNING_IMPL(B) \
- struct { \
+ struct BOOST_JOIN(STATIC_WARNING, __LINE__) { \
         struct S { \
             typedef boost::serialization::static_warning_impl<(bool)( B )> f; \
             friend class f::STATIC_WARNING; \
         }; \
- } \
+ }; \
      /**/
 #elif defined(BOOST_HAS_DESCRIPTIVE_INCOMPLETE_TYPE_WARNING)
 # define BOOST_STATIC_WARNING_IMPL(B) \


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