]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with BOOST 1.64
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 24 Apr 2017 22:29:49 +0000 (00:29 +0200)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 14 Aug 2017 16:13:00 +0000 (12:13 -0400)
include/deal.II/base/aligned_vector.h
include/deal.II/lac/la_vector.h
include/deal.II/lac/sparsity_pattern.h
include/deal.II/lac/vector.h

index b8c52c06994a44114829c5fe98e582c3addb5bde..9ba473de83a852ddba480bf73160ca4d47a4b167 100644 (file)
 #include <deal.II/base/memory_consumption.h>
 #include <deal.II/base/utilities.h>
 #include <deal.II/base/parallel.h>
-#include <boost/serialization/array.hpp>
+
+// boost::serialization::make_array used to be in array.hpp, but was
+// moved to a different file in BOOST 1.64
+#include <boost/version.hpp>
+#if BOOST_VERSION >= 106400
+#  include <boost/serialization/array_wrapper.hpp>
+#else
+#  include <boost/serialization/array.hpp>
+#endif
 #include <boost/serialization/split_member.hpp>
 
 #include <cstring>
index 18dbcf5d0227952109f9322dc80ec8d3ac9ac30d..10927eb0a576f1e1f9995b6eb9807a90cc71f935 100644 (file)
 #include <deal.II/lac/read_write_vector.h>
 #include <deal.II/lac/vector_space_vector.h>
 #include <deal.II/lac/vector_type_traits.h>
-#include <boost/serialization/array.hpp>
+
+// boost::serialization::make_array used to be in array.hpp, but was
+// moved to a different file in BOOST 1.64
+#include <boost/version.hpp>
+#if BOOST_VERSION >= 106400
+#  include <boost/serialization/array_wrapper.hpp>
+#else
+#  include <boost/serialization/array.hpp>
+#endif
 #include <boost/serialization/split_member.hpp>
 
 #include <cstdio>
index 2db0dd3009abfc24a8a098c43fdcd023a189c53b..8a77764ed287fee7f0fd736ed7008712e981c249 100644 (file)
 #include <deal.II/base/config.h>
 #include <deal.II/base/exceptions.h>
 #include <deal.II/base/subscriptor.h>
-#include <boost/serialization/array.hpp>
+
+// boost::serialization::make_array used to be in array.hpp, but was
+// moved to a different file in BOOST 1.64
+#include <boost/version.hpp>
+#if BOOST_VERSION >= 106400
+#  include <boost/serialization/array_wrapper.hpp>
+#else
+#  include <boost/serialization/array.hpp>
+#endif
 #include <boost/serialization/split_member.hpp>
 
 #include <vector>
 #include <iostream>
+#include <algorithm>
 
 DEAL_II_NAMESPACE_OPEN
 
index 4c63d2aa680940b147bb32c06efc262b2a35f21c..79e56bb7a29cc634909e1d6f4649cebd2146b0d1 100644 (file)
 #include <deal.II/base/subscriptor.h>
 #include <deal.II/base/index_set.h>
 #include <deal.II/lac/vector_type_traits.h>
-#include <boost/serialization/array.hpp>
+
+// boost::serialization::make_array used to be in array.hpp, but was
+// moved to a different file in BOOST 1.64
+#include <boost/version.hpp>
+#if BOOST_VERSION >= 106400
+#  include <boost/serialization/array_wrapper.hpp>
+#else
+#  include <boost/serialization/array.hpp>
+#endif
 #include <boost/serialization/split_member.hpp>
 
 #include <cstdio>

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.