[Boost-bugs] [Boost C++ Libraries] #3427: Serialization linker errors

Subject: [Boost-bugs] [Boost C++ Libraries] #3427: Serialization linker errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-08 22:14:46


#3427: Serialization linker errors
-------------------------------------+--------------------------------------
 Reporter: hkaiser | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: serialization
  Version: Boost Development Trunk | Severity: Regression
 Keywords: |
-------------------------------------+--------------------------------------
 The MS header file excpt.h has a
 {{{
     #define exception_code _exception_code
 }}}
 which leads to problems if not consistently included.

 The bottom line is, that archive_exception.cpp needs to be compiled with
 exactly the same windows headers included (excpt.h gets included by
 windows.h) as any sources including archive_exception.hpp, which is
 generally not possible to ensure.

 The only fail-proof way I could see is to always have
 {{{
     #if defined(BOOST_WINDOWS)
     #include <excpt.h>
     #endif
 }}}
 inside archive_exception.hpp, globally mapping exception_code to
 _exception_code. Patch attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3427>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC