Opened 14 years ago

Closed 14 years ago

#2286 closed Bugs (duplicate)

destroy method of extended_type_info_typeid violates privacy

Reported by: Ross Lippert <ross.lippert@…> Owned by: Robert Ramey
Milestone: Boost 1.37.0 Component: serialization
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

In previous versions of serialization, this class did not have a destroy method and the only thing which called destructors was class access, which has private access. In this version, extended_type_info_typeid also has a destroy but is not appropriately friended.

This means that a common singleton pattern, in which the destructor is made private, does not work with serialization. Attached in a file that can be compiled to give an example of this bug.

Attachments (1)

test.cxx (706 bytes ) - added by Ross Lippert <ross.lippert@…> 14 years ago.
test program

Download all attachments as: .zip

Change History (2)

by Ross Lippert <ross.lippert@…>, 14 years ago

Attachment: test.cxx added

test program

comment:1 by Robert Ramey, 14 years ago

Resolution: duplicate
Status: newclosed

This has been previously reported. The latest version checked into the trunk and pending testing addresses this issue.

Note: See TracTickets for help on using tickets.