Skip to content

Commit

Permalink
Merge pull request #165 from blitzpp/slayoo-patch-4
Browse files Browse the repository at this point in the history
see #34
  • Loading branch information
slayoo committed May 24, 2020
2 parents 839fc5e + ff43b17 commit 39f8859
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions blitz/memblock.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@
#include <blitz/blitz.h>
#include <blitz/simdtypes.h>
#ifdef BZ_HAVE_BOOST_SERIALIZATION
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/split_member.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/collection_size_type.hpp>
#include <boost/serialization/nvp.hpp>
# include <boost/serialization/serialization.hpp>
# include <boost/serialization/base_object.hpp>
# include <boost/serialization/split_member.hpp>
# include <boost/serialization/array.hpp>
# include <boost/serialization/collection_size_type.hpp>
# include <boost/serialization/nvp.hpp>
# include <boost/version.hpp>
# if BOOST_VERSION >= 106000
# include <boost/serialization/array_wrapper.hpp>
# include <boost/archive/detail/iserializer.hpp>
# endif
#endif
#include <stddef.h> // diffType

Expand Down Expand Up @@ -79,6 +84,12 @@ class MemoryBlock {
typedef P_type T_type;

protected:
#ifdef BZ_HAVE_BOOST_SERIALIZATION
# if BOOST_VERSION >= 106000
friend class boost::serialization::access ;
template<class T> friend class boost::archive::detail::heap_allocation;
# endif
#endif
explicit MemoryBlock(sizeType items)
{
// pad the length to vecWidth, if not already done
Expand Down

0 comments on commit 39f8859

Please sign in to comment.