morinim / vita

Vita - Genetic Programming Framework
Mozilla Public License 2.0
35 stars 6 forks source link

Simple method for serialization #10

Open morinim opened 7 years ago

morinim commented 7 years ago

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 commented 7 years ago

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

morinim commented 7 years ago

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 commented 7 years ago

Now using a custom, text-based, solution.

Some observations: