Re: [Boost-bugs] [Boost C++ Libraries] #5341: Patch to improve shared library behavior with serialization

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5341: Patch to improve shared library behavior with serialization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-03 23:32:17


#5341: Patch to improve shared library behavior with serialization
----------------------------------------------+-----------------------------
  Reporter: Aaron Barany <akb825@…> | Owner: ramey
      Type: Patches | Status: reopened
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.46.0 | Severity: Problem
Resolution: | Keywords: serialization shared_libraries dlls
----------------------------------------------+-----------------------------

Comment (by Aaron Barany <akb825@…>):

 I have posted an updated patch which fixes a couple compile errors in GCC.
 (I was missing a couple "typename" keywords that Microsoft's compiler
 didn't complain about) All of the serialization regression tests pass
 under gcc with my patchset.

 I did run into one issue when running the regression tests due to cygwin
 in the test test_utf8_codecvt.cpp. It is checking to see if the character
 from the wifstream is WEOF, but wchar_t is a 2 byte integer while WEOF is
 stored in a 4 byte integer with the value -1. When it does the comparison,
 it expands the wchar_t to 4 bytes, but since it's an unsigned value it
 pads the extra 2 bytes with 0s, causing the comparison to fail and
 infinite loops until it runs out of memory. By changing that comparison, I
 was able to get the test to succeed.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5341#comment:14>
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:06 UTC