boost::serialization problems
Hello,
I'm having some problems trying to use the boost::serialization
library. Here's why:
I have a class hierarchy (~80 classes). I was trying to add the
serialization abilities to the entire hierarchy (intrusive
template-based version). Because I need to serialize things
through pointers to base classes, I do the register_type on each
class. But the compilation fails on MSVC 7.1 with "internal
structure overflow" and "out of keys" errors. So I googled a
little bit and found out that this is a known issue with MSVC
and that the workaround is to split the .cpp file into smaller
parts. So I did. But now the linker fails due to excessive .lib
file size (I had to put the register_type function for each
class in separate .cpp file)
Ok so I switched to the polymorphic archives. It compiles fine,
but fails at runtime when saving a null pointer.
Here's a short example:
---
#include <fstream>
#include
participants (1)
-
Andrzej Cieslar