]> https://gitweb.dealii.org/ - dealii.git/commitdiff
hide boost deprecation warning with 1.73 10091/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 8 May 2020 14:54:48 +0000 (10:54 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 8 May 2020 14:55:44 +0000 (10:55 -0400)
boost 1.73 deprecated boost/bind.hpp but uses it internally. Defining
this macro silences the warnings.

fixes #10090

source/base/parameter_handler.cc
source/base/patterns.cc
source/base/utilities.cc
source/dofs/dof_renumbering.cc

index 4887933456853e4483d30403f032b7d8fe463b2a..dce5b410a6fc1ec72dba522c85700add1de23a1a 100644 (file)
 #include <deal.II/base/path_search.h>
 #include <deal.II/base/utilities.h>
 
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 #include <boost/algorithm/string.hpp>
 #include <boost/io/ios_state.hpp>
 #include <boost/property_tree/json_parser.hpp>
 #include <boost/property_tree/ptree.hpp>
 #include <boost/property_tree/xml_parser.hpp>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <algorithm>
 #include <cctype>
index 37edd78b98eadb4af801d1fc080ffd6c953160ea..cc9a4b90bf1f35dd75110bad7091f9bd241b8dd6 100644 (file)
 #include <deal.II/base/patterns.h>
 #include <deal.II/base/utilities.h>
 
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 #include <boost/io/ios_state.hpp>
 #include <boost/property_tree/json_parser.hpp>
 #include <boost/property_tree/ptree.hpp>
 #include <boost/property_tree/xml_parser.hpp>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <algorithm>
 #include <cctype>
index ef0db02b21649e9fcfdf5c0ff75e5efded1fb5ef..92c7ffcc3ca08d228a51bd4ae0e684ac3759dd6d 100644 (file)
 #include <deal.II/base/thread_local_storage.h>
 #include <deal.II/base/utilities.h>
 
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 #include <boost/archive/iterators/base64_from_binary.hpp>
 #include <boost/archive/iterators/binary_from_base64.hpp>
 #include <boost/archive/iterators/transform_width.hpp>
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/iostreams/copy.hpp>
 #include <boost/lexical_cast.hpp>
 #include <boost/random.hpp>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <algorithm>
index b70eb8fe1cb4ac4348b35893619bd143cc7f7465..bfabdb68124b240b513c29060a8cc3ddc9ef08e0 100644 (file)
@@ -42,6 +42,7 @@
 #include <deal.II/multigrid/mg_tools.h>
 
 DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
+#define BOOST_BIND_GLOBAL_PLACEHOLDERS
 #include <boost/config.hpp>
 #include <boost/graph/adjacency_list.hpp>
 #include <boost/graph/bandwidth.hpp>
@@ -51,6 +52,7 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/graph/properties.hpp>
 #include <boost/random.hpp>
 #include <boost/random/uniform_int_distribution.hpp>
+#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
 DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <algorithm>

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.