File: serialization.h

package info (click to toggle)
bagel 1.2.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 134,940 kB
  • sloc: cpp: 1,236,571; javascript: 15,383; python: 1,461; ansic: 674; makefile: 253; sh: 109
file content (15 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __BTAS_SERIALIZATION_H
#define __BTAS_SERIALIZATION_H 1

#include <array>
#include <boost/serialization/is_bitwise_serializable.hpp>
#include <boost/serialization/array.hpp>

namespace boost { namespace serialization {
  // this is needed to serialize  efficiently corner cases, like std::vector<std::array<std::complex<T>>>.
  // since bitwise serialization is not portable anyway, this is OK in the context of btas
  template <typename T, size_t N>
  struct is_bitwise_serializable<std::array<T,N> > : is_bitwise_serializable<T> { };
}}

#endif