Re: [Boost-bugs] [Boost C++ Libraries] #2685: [serialization][variant]Deserializing 'which' should check for values less than 0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2685: [serialization][variant]Deserializing 'which' should check for values less than 0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-31 18:28:13


#2685: [serialization][variant]Deserializing 'which' should check for values less
than 0
---------------------------------------------------------+------------------
  Reporter: Nevin ":-)" Liber <nevin_at_[hidden]> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: Boost 1.38.0 | Component: serialization
   Version: Boost 1.37.0 | Severity: Problem
Resolution: wontfix | Keywords:
---------------------------------------------------------+------------------
Changes (by ramey):

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

Comment:

 how could which ever be less than zero? If this were to occur, there is a
 fundamental programmer error from which no recovery is possible.

 maybe an assert would be appropriate - but throwing an exception would not
 be.

 In fact, this makes me question the usage of throwing an exception in the
 current code. This means that the programmer has removed a type from the
 variant which is still used in some archives. At this point, one cannot
 not expect to be able to load old archives.

 Robert Ramey

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