[Boost-bugs] [Boost C++ Libraries] #4467: XML Serialization : stream error when serialize a boost::uint64_t

Subject: [Boost-bugs] [Boost C++ Libraries] #4467: XML Serialization : stream error when serialize a boost::uint64_t
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-26 00:35:52


#4467: XML Serialization : stream error when serialize a boost::uint64_t
----------------------------------------+-----------------------------------
 Reporter: gdavid.devel@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: serialization
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: xml serialization uint64_t |
----------------------------------------+-----------------------------------
 When serialize a boost::uint64_t which is great, for example greater than
 9999999999999999999 (19 digits), the boost::archive::xml_iarchive ia(iss);
 throws a stream error.

 As proof of concept :
 - Take the following test-case :
 http://www.boost.org/doc/libs/1_43_0/libs/serialization/example/demo_xml.cpp
 - Add a boost::uint64_t to one of the serialized class (e.g. gps_position)
 - Initialize the boost::uint64_t attribute to 10000000000000000000 in the
 constructor
 - Add it to the void serialize(Archive &ar, const unsigned int version)
 method

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4467>
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:03 UTC