Boost logo

Boost Users :

From: Zrubavel Zodikovich (g729_at_[hidden])
Date: 2005-08-07 08:26:25


Another include file that fails to compile:

-----
#include <boost/serialization/shared_ptr.hpp>
-----
v:\Src\Lib\boost\serialization\void_cast.hpp(180) : error C2375:
'boost::serialization::void_cast_register' : redefinition; different linkage
         v:\Src\Lib\boost\serialization\base_object.hpp(47) : see
declaration of 'boost::serialization::void_cast_register'
-----

Thanks

Robert Ramey wrote:
> There should be no need to include the first header in user code. In spite
> of its name, its really and implementation file. perhaps later well move it
> to a better place.
>
> Robert Ramey
>
>
> Zrubavel Zodikovich wrote:
>
>>The following code produces error saying that archive is included
>>after serialization. What is the correct place to include map.hpp and
>>other predefined implementations when making a class with container
>>members serializable ?
>>
>>a.h
>>-----
>>#include <boost/serialization/serialization.hpp>
>>#include <boost/serialization/map.hpp>
>>
>>class A
>>{
>>public:
>>
>> template<class Archive>
>> void serialize(Archive & ar, const unsigned int version)
>> {
>> ar & someMap;
>> }
>>
>> std::map<int, int> someMap;
>>};
>>-----
>>
>>
>>Thanks


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