Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple method for serialization #10

Open
morinim opened this issue May 20, 2017 · 3 comments
Open

Simple method for serialization #10

morinim opened this issue May 20, 2017 · 3 comments

Comments

@morinim
Copy link
Owner

morinim commented May 20, 2017

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

Some resources to check:

@morinim
Copy link
Owner Author

morinim commented May 20, 2017

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

@morinim
Copy link
Owner Author

morinim commented May 20, 2017

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

@morinim
Copy link
Owner Author

morinim commented Sep 28, 2017

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant