|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2006-06-19 11:46:44
what version of boost are you using?
Robert Ramey
Diego Molla wrote:
> Hello,
>
> I have an error that is puzzling me. I have defined serialization of
> several custom classes, and everything worked perfectly until we've
> changed to a new Linux OS and had to reinstall Boost. Now the program
> doesn't compile and the error given is:
>
> error: incomplete type
> 'boost::serialization::extended_type_info_null<SetOfRules>' used in
> nested name specifier
>
> I don't really understand why it says there is an incomplete type when
> there used to be no errors. The same error happens with all the
> classes where I've defined serialization.
>
> The offending code for the above error message is:
>
> void save(const SetOfRules &sor, const string &fileName)
> {
> std::ofstream fout(fileName.c_str());
> boost::archive::text_oarchive oa(fout);
> oa << sor; // <== Here is the error
> fout.close();
> } // save
>
> Currently I'm using gcc version 4.0.4 20060507 (prerelease) (Debian
> 4.0.3-3)
>
> Can anybody help?
>
> Diego
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net