Add static assertions on invalid archive parameter for minimal serialization functions #80
Closed
Description
Just a detail:
In the following code, I have to REMOVE const of archvie in load_minimal in order to compile...
std::string save_minimal( const cereal::JSONOutputArchive& archive ) const
{
return ToString();
}
void load_minimal( const /*!!!???*/ cereal::JSONInputArchive & archive, const std::string& string_rep )
{
FromString( string_rep );
}
related remark:
ordinary load() also has a non-const archive, which seems counterintuitive...