diff options
author | David Wells | 2017-07-10 19:34:13 -0400 |
---|---|---|
committer | David Wells | 2017-07-10 19:34:13 -0400 |
commit | 5df8c86be8fc5aa63002e49a61262ba642b1899b (patch) | |
tree | 4df47ce70606b0213e0d1fe01f2680aee0b3179d /fix-compilation-with-BOOST-1.64.patch | |
parent | ee4a259f0f5f5867bfa45c0daabb068dd8266d80 (diff) | |
download | aur-5df8c86be8fc5aa63002e49a61262ba642b1899b.tar.gz |
Fix compilation with boost 1.64.
This commit adds a patch corresponding to commit 9c874026dee from the
upcoming 9.0 release of deal.II. The patch should be removed when 9.0 is
released.
Diffstat (limited to 'fix-compilation-with-BOOST-1.64.patch')
-rw-r--r-- | fix-compilation-with-BOOST-1.64.patch | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/fix-compilation-with-BOOST-1.64.patch b/fix-compilation-with-BOOST-1.64.patch new file mode 100644 index 000000000000..403f702f1aa0 --- /dev/null +++ b/fix-compilation-with-BOOST-1.64.patch @@ -0,0 +1,99 @@ + +--- + include/deal.II/base/aligned_vector.h | 10 +++++++++- + include/deal.II/lac/la_vector.h | 10 +++++++++- + include/deal.II/lac/sparsity_pattern.h | 11 ++++++++++- + include/deal.II/lac/vector.h | 10 +++++++++- + 4 files changed, 37 insertions(+), 4 deletions(-) + +diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h +index b8c52c0699..9ba473de83 100644 +--- a/include/deal.II/base/aligned_vector.h ++++ b/include/deal.II/base/aligned_vector.h +@@ -23,7 +23,15 @@ + #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> +diff --git a/include/deal.II/lac/la_vector.h b/include/deal.II/lac/la_vector.h +index 18dbcf5d02..10927eb0a5 100644 +--- a/include/deal.II/lac/la_vector.h ++++ b/include/deal.II/lac/la_vector.h +@@ -24,7 +24,15 @@ + #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> +diff --git a/include/deal.II/lac/sparsity_pattern.h b/include/deal.II/lac/sparsity_pattern.h +index 2db0dd3009..8a77764ed2 100644 +--- a/include/deal.II/lac/sparsity_pattern.h ++++ b/include/deal.II/lac/sparsity_pattern.h +@@ -20,11 +20,20 @@ + #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 + +diff --git a/include/deal.II/lac/vector.h b/include/deal.II/lac/vector.h +index 4c63d2aa68..79e56bb7a2 100644 +--- a/include/deal.II/lac/vector.h ++++ b/include/deal.II/lac/vector.h +@@ -23,7 +23,15 @@ + #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> +-- +2.13.1 |