Re: [Boost-bugs] [Boost C++ Libraries] #4906: Portable Binary Archive fails for -1 on AIX

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4906: Portable Binary Archive fails for -1 on AIX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-17 17:43:28


#4906: Portable Binary Archive fails for -1 on AIX
--------------------------------------------------------+-------------------
  Reporter: Avi Singh Bahra <avibahra@…> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.45.0 | Severity: Showstopper
Resolution: wontfix | Keywords: Portable Binary Archive
--------------------------------------------------------+-------------------

Comment (by clord@…):

 It's not a compiler bug. The bug is in the example code (load_impl and
 save_impl in portable_binary_iarchive.hpp and portable_binary_oarchive.hpp
 respectively). The example code should not assume that 'char' is signed --
 not all compilers implement char as default-signed. I suggest changing the
 above functions to use 'signed char' if you're trying to represent
 negative char in a portable manner.

 see: http://stackoverflow.com/questions/2054939/char-is-signed-or-
 unsigned-by-default

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4906#comment:3>
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:13 UTC