11 Apr
2007
11 Apr
'07
12:25 p.m.
Hi David, David Kantowitz wrote:
I'm having a bit of trouble using boost.serialization with a std::map. It seems like there is something simple I'm not doing correctly. I'm hoping someone can point me in the right direction. [...]
#include <map> #include <fstream> #include "boost/serialization/map.hpp" #include "boost/archive/xml_oarchive.hpp"
[...]
This is the error:
...boost-win32-1_33_1\include\boost\archive\detail\oserializer.hpp(131) : error C2027: use of undefined type 'boost::serialization::extended_type_info_null<T>' with [ T=std::map
]
This error indicated header ordering problems in my use cases. Try moving the two serialization headers to the top. Best regards, Wolfgang