Opened 14 years ago
Closed 14 years ago
#2286 closed Bugs (duplicate)
destroy method of extended_type_info_typeid violates privacy
Reported by: | 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)
Change History (2)
by , 14 years ago
comment:1 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This has been previously reported. The latest version checked into the trunk and pending testing addresses this issue.
test program