The following tiny program generates two compiler errors on FC 5
(which comes with g++ 4.1.1 and boost 1.33.1):
#include <iostream>
#include <fstream>
#include <string>
#include òù has no member named òøserializeòù Error No. 1 can be fixed by making pFoo a const pointer type, i.e., by
changing the declaration/assignment statement to be
string *const pFoo = new string("foo");
I cannot figure out why such a change is necessary, as the
serialization library documentation does not indicate that it is
necessary to make pointers const in order to serialize them (as is
borne out by the demo.cpp code). Also, I cannot figure out how to fix
Error No. 2.
Any help would be much appreciated!
Thanks,
Dan.