Hi,
I am currently experimenting with writing a compiler tool which generates
the code necessary for using boost::serialization. While working on this I
found that I am unable to serialize a variable declaration which is a
reference to a class constructed with the default constructor '()'( ex.
class foo var(); ). I have tried to find an explanation for this in the
examples, documentation and through searching the web without success. Using
pointers it works fine with the
default constructor and I do not see why it should be any different for
references (as references in essence are pointers). Is it possible to
serialize a class constructed using the default constructor using
boost::serialization, and if so how?
Example:
#include <fstream>
// include headers that implement a archive in simple text format
#include