Re: [boost] [serialization] new STATIC_ASSERTION_FAILURE

-----Original Message----- From: Vladimir Prus [mailto:ghost@cs.msu.su] Sent: 23 June 2005 06:20 To: boost@lists.boost.org 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.

Marcin Tustin wrote:
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.
Well, I don't have stdafx.h and I don't want to have one "includes-all" header. Further, as I mention both problems persist even if I rearrange includes order. - Volodya
participants (2)
-
Marcin Tustin
-
Vladimir Prus