Boost logo

Boost Users :

From: Wolfgang Baer (w.baer_at_[hidden])
Date: 2007-04-11 08:25:49


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<int,int>
> ]

This error indicated header ordering problems in my use cases.
Try moving the two serialization headers to the top.

Best regards,
Wolfgang


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