Re: [Boost-users] Serialization of hashmap

Hello,
I don't know If I'm wrong. To install boost I have used the installer from boost-consulting. At the moment I'm using version 1.34.0.
I have set the configuration makros in the follwing way
#define BOOST_HAS_HASH
#define BOOST_STD_EXTENSION_NAMESPACE stdext
#define STD BOOST_STD_EXTENSION_NAMESPACE
The problem is that during compiling I get 2 errors:
Error 133 error C2039: 'resize' : is not a member of 'stdext::hash_map<_Kty,_Ty,_Tr>' C:\boost_1_34_0\boost\serialization\hash_collections_load_imp.hpp 46
Error 134 error C2039: 'bucket_count' : is not a member of 'stdext::hash_map<_Kty,_Ty,_Tr>' C:\boost_1_34_0\boost\serialization\hash_collections_save_imp.hpp 43
The test program doesn't work to compile too. There are problems with the following lines:
namespace BOOST_STD_EXTENSION_NAMESPACE {
template<>
struct hash
__________________________________________________________________________ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http://produkte.web.de/club/?mc=021131

Hansi Hansi wrote:
You shouldn't have to set any macros. These should be set by boost/config.hpp which sets them properly for each compiler. I don't know if these are in fact set. If not, the fact that these tests are passing on my system and on the release tests wouldn't mean much. I'm too busy right now to look further into it. Robert Ramey
participants (2)
-
Hansi Hansi
-
Robert Ramey