30 #ifndef CEREAL_TYPES_ARRAY_HPP_
31 #define CEREAL_TYPES_ARRAY_HPP_
40 template <
class Archive,
class T,
size_t N>
inline
41 typename std::enable_if<traits::is_output_serializable<BinaryData<T>, Archive>::value
42 && std::is_arithmetic<T>::value,
void>::type
45 ar( binary_data( array.data(),
sizeof(array) ) );
50 template <
class Archive,
class T,
size_t N>
inline
51 typename std::enable_if<traits::is_input_serializable<BinaryData<T>, Archive>::value
52 && std::is_arithmetic<T>::value,
void>::type
55 ar( binary_data( array.data(),
sizeof(array) ) );
59 template <
class Archive,
class T,
size_t N>
inline
60 typename std::enable_if<!traits::is_output_serializable<BinaryData<T>, Archive>::value
61 || !std::is_arithmetic<T>::value,
void>::type
64 for(
auto const & i : array )
69 template <
class Archive,
class T,
size_t N>
inline
70 typename std::enable_if<!traits::is_input_serializable<BinaryData<T>, Archive>::value
71 || !std::is_arithmetic<T>::value,
void>::type
74 for(
auto & i : array )
79 #endif // CEREAL_TYPES_ARRAY_HPP_