
This was an issue with 1_33_0 that I believe was resolved with 1_33_1. I just tested this and it compiles with my VC 7.1 compiler with no errors. Looking at your code it seems that you're using 1_33_1 so I can't explain why we might be getting different results. Robert Ramey Oleg Abrosimov wrote:
Hello!
Some days ago I've faced with very strange problem with boost::serialization it doesn't compile, though docs says that it should.
After some research I've found that changing the order of header files included fixes the problem. It can be illustrated on a base of the demo.cpp program included in distribution:
The original order:
#include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/base_object.hpp> #include <boost/serialization/utility.hpp> #include <boost/serialization/list.hpp>
The modified order [doesn't compile!]:
#include <boost/serialization/base_object.hpp> #include <boost/serialization/utility.hpp> #include <boost/serialization/list.hpp>
#include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp>