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.
Thanks,
David K.
I'm using VS2005. Here is my test code:
#include <map>
#include <fstream>
#include "boost/serialization/map.hpp"
#include "boost/archive/xml_oarchive.hpp"
std::map
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. Thanks, David K.
I'm using VS2005. Here is my test code:
#include <map> #include <fstream>
//need include any archive files before serialization #include "boost/archive/xml_oarchive.hpp" #include "boost/serialization/map.hpp" ___________________________________________________ http://www.bigmir.net - поиск по украинским сайтам
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
Wolfgang, Александр,
Thank-you. That fixed my problem.
Best Regards,
David K.
On 4/11/07, Wolfgang Baer
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 _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
David Kantowitz
-
Wolfgang Baer
-
Александр