mirror of
https://github.com/RPCS3/cereal.git
synced 2024-11-23 03:09:40 +00:00
remove old code from sandbox relates #363
This commit is contained in:
parent
507f97d3ad
commit
75e50ee1e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user