Re: [Boost-bugs] [Boost C++ Libraries] #1715: gcc-4.3 doesn't compile polymorphic_(i)(o)archive.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1715: gcc-4.3 doesn't compile polymorphic_(i)(o)archive.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-31 11:02:57


#1715: gcc-4.3 doesn't compile polymorphic_(i)(o)archive.hpp
-----------------------------------------------------------+----------------
  Reporter: Maik Beckmann <Beckmann.Maik_at_[hidden]> | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost Development Trunk | Severity: Showstopper
Resolution: | Keywords:
-----------------------------------------------------------+----------------
Comment (by Maik Beckmann <Beckmann.Maik_at_[hidden]>):

 I found the origin of the problem.

 This piece of code
 {{{
 #if defined(BOOST_NO_INT64_T) \
     || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) //
 2**64 - 1
 # define BOOST_NO_INTRINSIC_INT64_T
 #endif
 }}}
 doesn't work as expected, since ULONG_MAX is not defined at this place
 when g++-4.3.x is used.

 The code should check if ULONG_MAX is available before using it.

 The fact that ULONG_MAX is not defined is caused by the include file
 cleanup made for GCC-4.3.
 To bring ULONG_MAX back, just add
 {{{
 #include <climits>
 }}}
 to the list of include files.

 A patch which does the suggestions above, and thus fixes the build with
 g++-4.3.x, is attached.

 Best,
  -- Maik

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1715#comment:1>
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:49:57 UTC