Minor docs

This commit is contained in:
Shane Grant
2013-06-12 18:01:02 -07:00
parent a4498932e4
commit b1ef8f9ddb
2 changed files with 7 additions and 4 deletions

View File

@@ -41,7 +41,6 @@ namespace cereal
if(readSize != size)
throw 1; // TODO: something terrible
}
private:
@@ -49,7 +48,7 @@ namespace cereal
};
//! Serialization for POD types to binary
//! Saving for POD types to binary
template<class T>
typename std::enable_if<std::is_arithmetic<T>::value, void>::type
save(BinaryOutputArchive & ar, T const & t)
@@ -58,6 +57,7 @@ namespace cereal
std::cout << "Saving POD size: " << sizeof(T) << " [" << t << "]" << std::endl;
}
//! Loading for POD types from binary
template<class T>
typename std::enable_if<std::is_arithmetic<T>::value, void>::type
load(BinaryInputArchive & ar, T & t)
@@ -66,7 +66,7 @@ namespace cereal
std::cout << "Loading POD size: " << sizeof(T) << " [" << t << "]" << std::endl;
}
//! Serialization for NVP types to binary
//! Saving for NVP types to binary
template<class T>
void save(BinaryOutputArchive & ar, NameValuePair<T> const & t)
{
@@ -74,6 +74,7 @@ namespace cereal
ar & t.value;
}
//! Loading for NVP types from binary
template<class T>
void load(BinaryInputArchive & ar, NameValuePair<T> t)
{
@@ -92,7 +93,7 @@ namespace cereal
std::cout << "Saving string: " << str << std::endl;
}
//! Serialization for basic_string types to binary
//! Serialization for basic_string types from binary
template<class CharT, class Traits, class Alloc>
void load(BinaryInputArchive & ar, std::basic_string<CharT, Traits, Alloc> & str)
{