Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions doc/archive_reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,15 @@ <h4>Usage</h4>
serialize such a primitive type will result in a compilation error since the common polymorphic
interface is static and cannot instantiate code for a new type.

<p>
Note also that every value written through a polymorphic archive has to be given a name, with
<code style="white-space: normal">BOOST_SERIALIZATION_NVP</code> or
<code style="white-space: normal">make_nvp</code>. Which archive is on the other end is settled
at run time, and it may turn out to be an XML one, where a value is written as an element and so
must be named. A templated XML archive rejects an unnamed value where it is written; the
polymorphic interface cannot, because at that point the archive type is not yet known, and the
value is written without an element around it. The resulting document cannot be read back.

<p>
The main utility of polymorphic archives will be to permit the building of class DLLs that will
include serialization code for all present and future archives with no redundant code.
Expand Down