Opened 15 years ago

Closed 15 years ago

#1089 closed Bugs (fixed)

missing boost::serialization::make_nvp in pointer container library

Reported by: anonymous Owned by: Thorsten Ottosen
Milestone: To Be Determined Component: ptr_container
Version: Boost 1.34.0 Severity: Problem
Keywords: serialization pointer container Cc:

Description

The serialization support of the pointer container library is not complete. If one tries to serialize a pointer container (such as ptr_vector<T>, with serializable T) to one of the xml-archive-types compilation will fail in an assertion failure:

boost/archive/basic_xml_oarchive.hpp:83: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’

As stated in the coment in boost/archive/basic_xml_oarchive.hpp this is due to missing nvp-wrappers in all serialization functions at least in boost/ptr_container/detail/reversible_ptr_container.hpp

Change History (4)

comment:1 by Marshall Clow, 15 years ago

Owner: set to Robert Ramey

comment:2 by Robert Ramey, 15 years ago

Owner: Robert Ramey removed

comment:3 by Marshall Clow, 15 years ago

Component: serializationptr_container
Owner: set to Thorsten Ottosen

comment:4 by Thorsten Ottosen, 15 years ago

Resolution: fixed
Status: newclosed

Should be fixed in 1.35

-Thorsten

Note: See TracTickets for help on using tickets.