Boost logo

Boost :

From: Sohail Somani (sohail_at_[hidden])
Date: 2008-03-23 03:25:36

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 @@
 #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"

Sohail Somani

Boost list run by bdawes at, gregod at, cpdaniel at, john at