|
35 | 35 | #include <blitz/blitz.h> |
36 | 36 | #include <blitz/simdtypes.h> |
37 | 37 | #ifdef BZ_HAVE_BOOST_SERIALIZATION |
38 | | -#include <boost/serialization/serialization.hpp> |
39 | | -#include <boost/serialization/base_object.hpp> |
40 | | -#include <boost/serialization/split_member.hpp> |
41 | | -#include <boost/serialization/array.hpp> |
42 | | -#include <boost/serialization/collection_size_type.hpp> |
43 | | -#include <boost/serialization/nvp.hpp> |
| 38 | +# include <boost/serialization/serialization.hpp> |
| 39 | +# include <boost/serialization/base_object.hpp> |
| 40 | +# include <boost/serialization/split_member.hpp> |
| 41 | +# include <boost/serialization/array.hpp> |
| 42 | +# include <boost/serialization/collection_size_type.hpp> |
| 43 | +# include <boost/serialization/nvp.hpp> |
| 44 | +# include <boost/version.hpp> |
| 45 | +# if BOOST_VERSION >= 106000 |
| 46 | +# include <boost/serialization/array_wrapper.hpp> |
| 47 | +# include <boost/archive/detail/iserializer.hpp> |
| 48 | +# endif |
44 | 49 | #endif |
45 | 50 | #include <stddef.h> // diffType |
46 | 51 |
|
@@ -79,6 +84,12 @@ class MemoryBlock { |
79 | 84 | typedef P_type T_type; |
80 | 85 |
|
81 | 86 | protected: |
| 87 | +#ifdef BZ_HAVE_BOOST_SERIALIZATION |
| 88 | +# if BOOST_VERSION >= 106000 |
| 89 | + friend class boost::serialization::access ; |
| 90 | + template<class T> friend class boost::archive::detail::heap_allocation; |
| 91 | +# endif |
| 92 | +#endif |
82 | 93 | explicit MemoryBlock(sizeType items) |
83 | 94 | { |
84 | 95 | // pad the length to vecWidth, if not already done |
|
0 commit comments