
Dante Stroe wrote:
Hello,
I am currently trying to serialize the classes of a project I am working on, but I ran into a few compliation errors and I am kind of stuck, so I was hoping somebody here could help me on that. I am using the 1.43 version of the boost library and gcc 4.4.1. (I'd like to add that all the examples in and tutorials from the documentation work fine for me). I am trying to serialize a base class called "base" and it's derived class called "de" that use a shared pointer, and afterwards test my implementation by saving the an instance of a "de" object into a text archive and then restoring it.
These is the serialization implementation for my two classes for reference:
---"base.h"----- #include<iostream> #include<string> #include<typeinfo> #include "../config.h" #include "../population.h" #include "../rng.h" #include
#include #include #include #include
try adding:
#include