From: Marcin Tustin (mt_at_[hidden])
Date: 2005-06-23 08:15:46


> -----Original Message-----
> From: Vladimir Prus [mailto:ghost_at_[hidden]]
> Sent: 23 June 2005 06:20
> To: boost_at_[hidden]
> Subject: Re: [boost] [serialization] new STATIC_ASSERTION_FAILURE
>
> Robert Ramey wrote:
>
> > Vladimir Prus wrote:

> >> 2. Could base_object.hpp be fixed either by including the
> appropriate
> >> header, or in some other way.
> >
> > I believe this will also be correct by following the above rule.
>
> How? Clearly, if I include base_object.hpp in a header, I
> cannot obey the above rule. Ok leaving just:
>
> #include <boost/serialization/access.hpp>
> #include <boost/serialization/split_member.hpp>
> #include <boost/serialization/base_object.hpp>
>
> in my header, and using the mandated includes order in .cpp
> file, I still get the same error.
>
> What should we do next?

        I put the archive headers in my stdafx.h, which is a header
included as the first include in every file. This ensures that the
archive headers are included before the any serialization headers.