Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2007-12-05 12:29:00


Author: nesotto
Date: 2007-12-05 12:29:00 EST (Wed, 05 Dec 2007)
New Revision: 41750
URL: http://svn.boost.org/trac/boost/changeset/41750

Log:
minor warning supressions from trunk
Text files modified:
   branches/release/boost/ptr_container/clone_allocator.hpp | 6 ++++++
   branches/release/boost/ptr_container/detail/move.hpp | 9 +++++++++
   branches/release/boost/ptr_container/detail/reversible_ptr_container.hpp | 11 ++++++++++-
   branches/release/boost/ptr_container/nullable.hpp | 10 ++++++++++
   4 files changed, 35 insertions(+), 1 deletions(-)

Modified: branches/release/boost/ptr_container/clone_allocator.hpp
==============================================================================
--- branches/release/boost/ptr_container/clone_allocator.hpp (original)
+++ branches/release/boost/ptr_container/clone_allocator.hpp 2007-12-05 12:29:00 EST (Wed, 05 Dec 2007)
@@ -25,6 +25,12 @@
     template< class T >
     inline T* new_clone( const T& r )
     {
+ //
+ // @remark: if you get a compile-error here,
+ // it is most likely because you did not
+ // define new_clone( const T& ) in the namespace
+ // of T.
+ //
         T* res = new T( r );
         BOOST_ASSERT( typeid(r) == typeid(*res) &&
                       "Default new_clone() sliced object!" );

Modified: branches/release/boost/ptr_container/detail/move.hpp
==============================================================================
--- branches/release/boost/ptr_container/detail/move.hpp (original)
+++ branches/release/boost/ptr_container/detail/move.hpp 2007-12-05 12:29:00 EST (Wed, 05 Dec 2007)
@@ -12,6 +12,11 @@
 
 namespace move_ptrs {
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512)
+#endif
+
 template<typename Ptr>
 class move_source {
 public:
@@ -22,6 +27,10 @@
     move_source(const Ptr&);
 };
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 } // End namespace move_ptrs.
 
 

Modified: branches/release/boost/ptr_container/detail/reversible_ptr_container.hpp
==============================================================================
--- branches/release/boost/ptr_container/detail/reversible_ptr_container.hpp (original)
+++ branches/release/boost/ptr_container/detail/reversible_ptr_container.hpp 2007-12-05 12:29:00 EST (Wed, 05 Dec 2007)
@@ -38,9 +38,14 @@
 #include <typeinfo>
 #include <memory>
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4127)
+#endif
+
 namespace boost
 {
-
+
 namespace ptr_container_detail
 {
     template< class CloneAllocator >
@@ -648,4 +653,8 @@
 
 } // namespace 'boost'
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 #endif

Modified: branches/release/boost/ptr_container/nullable.hpp
==============================================================================
--- branches/release/boost/ptr_container/nullable.hpp (original)
+++ branches/release/boost/ptr_container/nullable.hpp 2007-12-05 12:29:00 EST (Wed, 05 Dec 2007)
@@ -45,8 +45,18 @@
     private:
             BOOST_STATIC_CONSTANT( T*, var );
     public:
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:6334)
+#endif
+
             BOOST_STATIC_CONSTANT(bool, value = sizeof( ptr_container_detail::is_nullable( var ) )
                                                 == sizeof( type_traits::yes_type ) );
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
     };
     
     template< class 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