Subject: [Boost-bugs] [Boost C++ Libraries] #11245: Deserialization with private constructor works in 1.57 not in 1.58
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-28 19:19:45
#11245: Deserialization with private constructor works in 1.57 not in 1.58
------------------------------+---------------------------
Reporter: Thomas Aho | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.58.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
Under certain circumstances deserialization of a class with a private
constructor does not work with Boost 1.58. In 1.57 it worked fine. The
code in the attached file, when compiled with Visual Studio 2013, gives
the following error message:
c:\program files (x86)\vc\include\xmemory0(588): error C2248: 'A::A' :
cannot access private member declared in class 'A'
1> c:\projects\serializetest\serializetest.cpp(14) : see
declaration of 'A::A'
1> c:\projects\serializetest\serializetest.cpp(9) : see
declaration of 'A'
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11245> 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:18 UTC