Skip to content

Add static assertions on invalid archive parameter for minimal serialization functions #80

Closed
@DrAWolf

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...

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions