]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix gcc-8 warnings in bundled boost 6442/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 3 May 2018 22:44:34 +0000 (00:44 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 3 May 2018 22:44:34 +0000 (00:44 +0200)
bundled/boost-1.62.0/include/boost/archive/text_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/text_woarchive.hpp
bundled/boost-1.62.0/include/boost/archive/xml_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/xml_woarchive.hpp
bundled/boost-1.62.0/include/boost/mpl/assert.hpp

index 9ba0dafffb435f6501518e6a91443ef3a0b9069a..e4c6d4666a3d20631f71fd722c52dc14e0e25c11 100644 (file)
@@ -65,10 +65,10 @@ protected:
         basic_text_oprimitive<std::ostream>::save(t);
     }
     void save(const version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     void save(const boost::serialization::item_version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     BOOST_ARCHIVE_DECL void 
     save(const char * t);
index b6b4f8ed59aadc0f2ffa525c34433893007ef35c..beba62f705830178bd707b3f6ebd1b1c51a18ad1 100644 (file)
@@ -78,10 +78,10 @@ protected:
         basic_text_oprimitive<std::wostream>::save(t);
     }
     void save(const version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     void save(const boost::serialization::item_version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     BOOST_WARCHIVE_DECL void
     save(const char * t);
index eea12680372015b23f00fadfdab87fbdb00a1b65..d0fa8b21f2652b445ffff937688d2e3fa22f7303 100644 (file)
@@ -65,11 +65,11 @@ protected:
     }
     void 
     save(const version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     void 
     save(const boost::serialization::item_version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     BOOST_ARCHIVE_DECL void 
     save(const char * t);
index cb7ce68cb6f292e191774e834c8d7446e3170643..e6ac50de44b1cc81ffdb472a200d4782f44d6873 100644 (file)
@@ -74,11 +74,11 @@ protected:
     }
     void
     save(const version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     void 
     save(const boost::serialization::item_version_type & t){
-        save(static_cast<const unsigned int>(t));
+        save(static_cast<unsigned int>(t));
     }
     BOOST_WARCHIVE_DECL void
     save(const char * t);
index 4d860a4cae2f0b18f3c88659aae1d66fcea2bbf1..e68ab453fed2c0214d377461798b7c5584f5f280 100644 (file)
@@ -185,14 +185,12 @@ template< typename P > struct assert_arg_pred_not
 };
 
 template< typename Pred >
-failed ************ (Pred::************ 
-      assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type )
-    );
+failed ************ Pred::************
+      assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type );
 
 template< typename Pred >
-failed ************ (boost::mpl::not_<Pred>::************ 
-      assert_not_arg( void (*)(Pred), typename assert_arg_pred_not<Pred>::type )
-    );
+failed ************ boost::mpl::not_<Pred>::************
+      assert_not_arg( void (*)(Pred), typename assert_arg_pred_not<Pred>::type );
 
 template< typename Pred >
 AUX778076_ASSERT_ARG(assert<false>)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.