remove old code from sandbox relates #363

This commit is contained in:
Shane Grant 2016-11-28 13:48:46 -08:00
parent 507f97d3ad
commit 75e50ee1e6

View File

@ -311,31 +311,6 @@ struct OOJson
}
};
enum Bla
{
x,
y
};
template <class Archive>
void save( Archive & ar, Bla const & b )
{
ar( static_cast<const int &>(b) );
}
template <class Archive>
void load( Archive & ar, Bla & b )
{
ar( static_cast<int&>(b) );
}
CEREAL_SPECIALIZE_FOR_ALL_ARCHIVES( Bla, cereal::specialization::non_member_load_save )
//namespace cereal
//{
// //template <class Archive> struct specialize<Archive, Bla, cereal::specialization::non_member_load_save> {};
//}
// ######################################################################
int main()
{
@ -370,8 +345,6 @@ int main()
auto f2 = f;
archive( f );
archive( f2 );
archive( Bla::x );
}
// test out of order