Skip to content

Simple method for serialization #10

Open

Description

@morinim

Probably the best way is via boost::serialization (but we have to give more careful consideration to Google Protocol Buffer).

Some resources to check:

Activity

  1. morinim commented on May 20, 2017

    @morinim
    OwnerAuthor

    There could be problems with boost::serialization and classes using boost::any. See https://stackoverflow.com/a/3672347/3235496

  2. morinim commented on May 20, 2017

    @morinim
    OwnerAuthor

    THERE IS NOT A SIMPLE WAY...

    We have changed boost::any with boost::variant and it works.

    Now boost doesn't support std::shared_ptr serialization. Although it isn't hard to change std::shared_ptr with boost::shared_ptr, I'm not convinced anymore that boost::serialization is the best way to go.

    Probably custom solution...

  3. morinim commented on Sep 28, 2017

    @morinim
    OwnerAuthor

    Now using a custom, text-based, solution.

    Some observations:

    • any serialization is a non-problem (see commit 9d93e67)
    • the general approach is to avoid boost dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions