|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-03-23 15:33:53
This is a very good observation. I'll make the change and see if it "fixes"
similar problems on other platforms.
Having said this, it shouldn't make any difference. there should be
no header order requirement. Dave Abrahams - could you take
a look at this?
Robert Ramey
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.
>
> 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