Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2008-03-23 13:29:58


Sohail Somani wrote:
> On Sun, 23 Mar 2008 06:11:23 +0000, Sohail Somani wrote:
>
>> Does anyone know why these are failing? These are the only tests
>> failing on my machine (g++ 4.1.3 on 32-bit Linux). Additionally
>> test_*_dll don't seem to be running either... Anyway, the error I
>> see is:
>>
>> ../libs/serialization/test/test_tools.hpp(182): unregistered void
>> cast in function 'int main(int, char**)'
>
> Hmm... I was under the impression that there is no longer a header
> ordering requirement for export.hpp. Strangely enough, the following
> diff fixes the problem for me.

Hmmm - I was also under the impression that there was no longer such
a header ordering requirement. This will have to be looked into. Your
fix will give a good clue. Thanks a lot.

Robert Ramey

>
> Index: test_exported.cpp
> ===================================================================
> --- test_exported.cpp (revision 43795)
> +++ test_exported.cpp (working copy)
> @@ -19,11 +19,11 @@
> #endif
>
> #include <boost/serialization/base_object.hpp>
> -#include <boost/serialization/export.hpp>
> #include <boost/serialization/type_info_implementation.hpp>
>
> #include <boost/archive/archive_exception.hpp>
> #include "test_tools.hpp"
> +#include <boost/serialization/export.hpp> // <--- oops???
>
> #include "base.hpp"


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk