Re: [Boost-bugs] [Boost C++ Libraries] #5789: Segmentation fault with serialization when register_type rearranged

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5789: Segmentation fault with serialization when register_type rearranged
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-17 10:28:11


#5789: Segmentation fault with serialization when register_type rearranged
---------------------------------------------------+------------------------
  Reporter: Krzysztof Tomaszewski <kt@…> | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------+------------------------

Comment (by Krzysztof Tomaszewski <kt@…>):

 The best solution would be as follows:

 - archive content created by archive object with registered classes A, B,
 C should be correctly readable by archive object with registered classes
 A, B, C, '''D''' - thus adding new class (D) registration at the end
 without change of order of registration of previously registered classes
 (A, B, C) should not break ability to read archive contents created when
 class D was not registered

 - or register_type method should allow to give class name in form of
 '''const char*''' or '''std::string''' - such solution would allow to
 register classes in any order - archive content will be readable as far as
 all needed classes are registered in archive object

 - lack of required class registration needed to read archive content must
 be signaled by '''exception''' thus no segmentation fault occurs.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5789#comment:3>
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:07 UTC