mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
removing extra non const versions of save
This commit is contained in:
@@ -22,7 +22,7 @@ namespace cereal
|
||||
ar.load_binary( array.data(), N * sizeof(T) );
|
||||
}
|
||||
|
||||
//! Saving for const std::array all other types to binary
|
||||
//! Saving for std::array all other types to binary
|
||||
template <class T, size_t N>
|
||||
typename std::enable_if<!std::is_arithmetic<T>::value, void>::type
|
||||
save( BinaryOutputArchive & ar, std::array<T, N> const & array )
|
||||
|
||||
@@ -16,16 +16,6 @@ namespace cereal
|
||||
ar & i;
|
||||
}
|
||||
|
||||
//! Loading for std::deque all other types from binary (non-const version)
|
||||
template <class T, class A>
|
||||
void save( BinaryOutputArchive & ar, std::deque<T, A> & deque )
|
||||
{
|
||||
ar & deque.size();
|
||||
|
||||
for( auto & i : deque )
|
||||
ar & i;
|
||||
}
|
||||
|
||||
//! Loading for std::deque all other types to binary
|
||||
template <class T, class A>
|
||||
void load( BinaryInputArchive & ar, std::deque<T, A> & deque )
|
||||
|
||||
Reference in New Issue
Block a user