mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
Added unit tests for complex and bitset
Made all template functions for the various types inline
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
namespace cereal
|
||||
{
|
||||
//! Saving for std::array primitive types to binary
|
||||
template <class T, size_t N>
|
||||
template <class T, size_t N> inline
|
||||
typename std::enable_if<std::is_arithmetic<T>::value, void>::type
|
||||
save( BinaryOutputArchive & ar, std::array<T, N> const & array )
|
||||
{
|
||||
@@ -15,7 +15,7 @@ namespace cereal
|
||||
}
|
||||
|
||||
//! Loading for std::array primitive types to binary
|
||||
template <class T, size_t N>
|
||||
template <class T, size_t N> inline
|
||||
typename std::enable_if<std::is_arithmetic<T>::value, void>::type
|
||||
load( BinaryInputArchive & ar, std::array<T, N> & array )
|
||||
{
|
||||
@@ -23,7 +23,7 @@ namespace cereal
|
||||
}
|
||||
|
||||
//! Saving for std::array all other types to binary
|
||||
template <class T, size_t N>
|
||||
template <class T, size_t N> inline
|
||||
typename std::enable_if<!std::is_arithmetic<T>::value, void>::type
|
||||
save( BinaryOutputArchive & ar, std::array<T, N> const & array )
|
||||
{
|
||||
@@ -32,7 +32,7 @@ namespace cereal
|
||||
}
|
||||
|
||||
//! Loading for std::array all other types to binary
|
||||
template <class T, size_t N>
|
||||
template <class T, size_t N> inline
|
||||
typename std::enable_if<!std::is_arithmetic<T>::value, void>::type
|
||||
load( BinaryInputArchive & ar, std::array<T, N> & array )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user