Re: [Boost-bugs] [Boost C++ Libraries] #3977: Compile error on make_nvp with reference data member

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3977: Compile error on make_nvp with reference data member
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-04 19:15:34


#3977: Compile error on make_nvp with reference data member
----------------------------------+-----------------------------------------
  Reporter: kondo@… | Owner: ramey
      Type: Patches | Status: closed
 Milestone: Boost 1.43.0 | Component: serialization
   Version: Boost 1.42.0 | Severity: Problem
Resolution: wontfix | Keywords:
----------------------------------+-----------------------------------------
Changes (by ramey):

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

Comment:

 This looks much better.

 But I have still have concerns about it.

 The reason that we trap a attempt to serialize a non-const is described in
 the rationale section of the documentation. Your fix overrides that an
 makes it easier for a user to create an archive which will prove to be
 unloadable. The current situation requires that the user either change
 his ref to a const ref or use a const_cast - also he could suppress
 tracking for that type. So the current situation requires that the user
 react to a potentially sever problem and take some explicit action to get
 around it. This saves me uncountable hours of explaining to the user
 where his problem might be when he later tries to load a tracked item
 which has changed in the course of serialization. I realize that it's a
 pain in many cases. But I really can't spend this much time with users
 who have inadvertently created unloadable archives.

 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3977#comment:5>
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:02 UTC