
Hi,
I'm trying to make a custom archive class that works either with the
template flavor or via the polymorphic_archive. It compiles but produces
a different behavior and I can't find why.
Basically I did a trivial oarchive class that overloads (via
save_override) how are treated NVP. When used with the template version
it works, whereas with the polymorphic version it doesn't.
The code is attached. There is a preprocessor switch to choose the
template or polymorphic version (-DPOLY).
$ g++ poly.cc -lboost_serialization && ./a.out