Skip to content

Commit

Permalink
remove old code from sandbox relates USCiLab#363
Browse files Browse the repository at this point in the history
  • Loading branch information
AzothAmmo committed Nov 28, 2016
1 parent 507f97d commit 75e50ee
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions sandbox/sandbox_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -370,8 +345,6 @@ int main()
auto f2 = f;
archive( f );
archive( f2 );

archive( Bla::x );
}

// test out of order
Expand Down

0 comments on commit 75e50ee

Please sign in to comment.