Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55435 - trunk/boost/archive/detail
From: ramey_at_[hidden]
Date: 2009-08-06 16:07:43


Author: ramey
Date: 2009-08-06 16:07:42 EDT (Thu, 06 Aug 2009)
New Revision: 55435
URL: http://svn.boost.org/trac/boost/changeset/55435

Log:
suppressed warning_check which creates warns in too many cases
Text files modified:
   trunk/boost/archive/detail/oserializer.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/archive/detail/oserializer.hpp
==============================================================================
--- trunk/boost/archive/detail/oserializer.hpp (original)
+++ trunk/boost/archive/detail/oserializer.hpp 2009-08-06 16:07:42 EDT (Thu, 06 Aug 2009)
@@ -424,6 +424,7 @@
>::type type;
     };
 
+ #if 0
     template<class T>
     struct warning_check {
         typedef
@@ -441,6 +442,7 @@
> type;
         BOOST_STATIC_CONSTANT(bool, value = type::value);
     };
+ #endif
 
     // used to convert TPtr in to a pointer to a T
     template<class T>
@@ -467,7 +469,10 @@
         // that serialization for collections of primitives use this method
         // so even if you avoid this "risky" behavior - it could trip you up.
 
- BOOST_STATIC_WARNING(warning_check<T>::value);
+ // note: I decided to comment this as as this warning is almost
+ // always going to be spurious.
+
+ // BOOST_STATIC_WARNING(warning_check<T>::value);
         conditional<T>::type::save(ar, const_cast<T &>(t));
     }
 


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