Added unit tests for complex and bitset

Made all template functions for the various types inline
This commit is contained in:
Shane Grant
2013-06-16 11:31:59 -07:00
parent 0c56175a1c
commit e2d07a1670
15 changed files with 152 additions and 55 deletions

View File

@@ -7,7 +7,7 @@
namespace cereal
{
//! Serialization for basic_string types to binary
template<class CharT, class Traits, class Alloc>
template<class CharT, class Traits, class Alloc> inline
void save(BinaryOutputArchive & ar, std::basic_string<CharT, Traits, Alloc> const & str)
{
// Save number of chars + the data
@@ -16,7 +16,7 @@ namespace cereal
}
//! Serialization for basic_string types from binary
template<class CharT, class Traits, class Alloc>
template<class CharT, class Traits, class Alloc> inline
void load(BinaryInputArchive & ar, std::basic_string<CharT, Traits, Alloc> & str)
{
size_t size;