Re: [Boost-bugs] [Boost C++ Libraries] #3233: serialization problem: enum : __int64

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3233: serialization problem: enum : __int64
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-09 15:08:21


#3233: serialization problem: enum : __int64
----------------------------------------------+-----------------------------
  Reporter: dcb_BanDos <ban_dos@…> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: Boost 1.40.0 | Component: serialization
   Version: Boost 1.39.0 | Severity: Problem
Resolution: wontfix | Keywords: __int64 enum serialization
----------------------------------------------+-----------------------------
Changes (by ramey):

  * status: new => closed
  * resolution: => wontfix

Comment:

 this would make binary archives larger for every user of the library. And
 also require code to recognise old archives. All in all just not worth
 it. Try something like

 enum {
  epAvgCpu
 ...
 }
 const int_64 lookup_table[] = {
 0x10000000l
 ...

 and use

 lookup_table[epAvgCpu instead of epAvgCpu.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3233#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:50:00 UTC