Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81094 - in trunk/boost/chrono: detail/no_warning io io/utility
From: vicente.botet_at_[hidden]
Date: 2012-10-29 08:08:13


Author: viboes
Date: 2012-10-29 08:08:12 EDT (Mon, 29 Oct 2012)
New Revision: 81094
URL: http://svn.boost.org/trac/boost/changeset/81094

Log:
Chrono: remove some warnoings
Text files modified:
   trunk/boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp | 10 ++++++++++
   trunk/boost/chrono/io/duration_io.hpp | 2 ++
   trunk/boost/chrono/io/ios_base_state.hpp | 1 +
   trunk/boost/chrono/io/time_point_io.hpp | 5 +++++
   trunk/boost/chrono/io/utility/ios_base_state_ptr.hpp | 5 ++++-
   5 files changed, 22 insertions(+), 1 deletions(-)

Modified: trunk/boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp
==============================================================================
--- trunk/boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp (original)
+++ trunk/boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp 2012-10-29 08:08:12 EDT (Mon, 29 Oct 2012)
@@ -19,6 +19,10 @@
 
 #if defined(__GNUC__) && (__GNUC__ >= 4)
 #pragma GCC system_header
+#elif defined __SUNPRO_CC
+#pragma disable_warn
+#elif defined _MSC_VER
+#pragma warning(push, 1)
 #endif
 
 namespace boost {
@@ -41,4 +45,10 @@
 } // namespace detail
 } // namespace chrono
 
+#if defined __SUNPRO_CC
+#pragma enable_warn
+#elif defined _MSC_VER
+#pragma warning(pop)
+#endif
+
 #endif // BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP

Modified: trunk/boost/chrono/io/duration_io.hpp
==============================================================================
--- trunk/boost/chrono/io/duration_io.hpp (original)
+++ trunk/boost/chrono/io/duration_io.hpp 2012-10-29 08:08:12 EDT (Mon, 29 Oct 2012)
@@ -105,6 +105,8 @@
       }
 
     private:
+ duration_style_io_saver& operator=(duration_style_io_saver const& rhs) ;
+
       state_type& s_save_;
       aspect_type a_save_;
     };

Modified: trunk/boost/chrono/io/ios_base_state.hpp
==============================================================================
--- trunk/boost/chrono/io/ios_base_state.hpp (original)
+++ trunk/boost/chrono/io/ios_base_state.hpp 2012-10-29 08:08:12 EDT (Mon, 29 Oct 2012)
@@ -23,6 +23,7 @@
     class fmt_masks : public ios_flags<fmt_masks>
     {
       typedef ios_flags<fmt_masks> base_type;
+ fmt_masks& operator=(fmt_masks const& rhs) ;
 
     public:
       fmt_masks(std::ios_base& ios): base_type(ios) {}

Modified: trunk/boost/chrono/io/time_point_io.hpp
==============================================================================
--- trunk/boost/chrono/io/time_point_io.hpp (original)
+++ trunk/boost/chrono/io/time_point_io.hpp 2012-10-29 08:08:12 EDT (Mon, 29 Oct 2012)
@@ -521,6 +521,8 @@
         set_timezone(s_save_, a_save_);
       }
     private:
+ timezone_io_saver& operator=(timezone_io_saver const& rhs) ;
+
       state_type& s_save_;
       aspect_type a_save_;
     };
@@ -709,6 +711,7 @@
     } // detail
 
 #if defined BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT
+
     template <class CharT, class Traits, class Duration>
     std::basic_ostream<CharT, Traits>&
     operator<<(std::basic_ostream<CharT, Traits>& os, const time_point<system_clock, Duration>& tp)
@@ -904,6 +907,7 @@
     } // detail
 
 #if defined BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT
+
     template <class CharT, class Traits, class Duration>
     std::basic_istream<CharT, Traits>&
     operator>>(std::basic_istream<CharT, Traits>& is, time_point<system_clock, Duration>& tp)
@@ -1037,6 +1041,7 @@
       }
       return is;
     }
+
 #endif
 #endif //UTC
   } // chrono

Modified: trunk/boost/chrono/io/utility/ios_base_state_ptr.hpp
==============================================================================
--- trunk/boost/chrono/io/utility/ios_base_state_ptr.hpp (original)
+++ trunk/boost/chrono/io/utility/ios_base_state_ptr.hpp 2012-10-29 08:08:12 EDT (Mon, 29 Oct 2012)
@@ -66,6 +66,8 @@
     template <typename Final, typename T>
     class ios_state_ptr
     {
+ ios_state_ptr& operator=(ios_state_ptr const& rhs) ;
+
     public:
       /**
        * The pointee type
@@ -277,6 +279,7 @@
         }
       }
 
+
     protected:
       std::ios_base& ios_;
       //static detail::xalloc_key_initializer<Final> xalloc_key_initializer_;
@@ -335,7 +338,6 @@
       ~ios_flags()
       {
       }
-
       /**
        * @Returns The format control information.
        */
@@ -419,6 +421,7 @@
       {
         return detail::xalloc_key_holder<Final>::value;
       }
+ ios_flags& operator=(ios_flags const& rhs) ;
 
       std::ios_base& ios_;
       //static detail::xalloc_key_initializer<Final> xalloc_key_initializer_;


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