Subject: [Boost-bugs] [Boost C++ Libraries] #12141: XML serialization broken
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-20 18:27:14
#12141: XML serialization broken
----------------------------------------------+---------------------------
Reporter: Tony Lewis <tonyelewis@â¦> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.61.0 | Severity: Regression
Keywords: serialization,xml,regression,tag |
----------------------------------------------+---------------------------
The Boost 1.61.0 beta1 version of serialization has a breaking regression
that changes the XML closing tag to `</boost_serialization>` rather
than `</boost_serialization>`.
Example code:
{{{
#!cpp
#include <boost/archive/xml_oarchive.hpp>
#include <boost/serialization/nvp.hpp>
#include <iostream>
int main() {
boost::archive::xml_oarchive oa( std::cerr );
int bob = 3;
oa << boost::serialization::make_nvp( "bob", bob );
}
}}}
Compiling and running with these commands:
{{{
setenv LD_LIBRARY_PATH
/opt/boost_1_60_0_gcc_build/lib:/opt/boost_1_61_0_b1_gcc_build/lib
g++ ser_regn.cpp -isystem /opt/boost_1_60_0_gcc_build/include
-L/opt/boost_1_60_0_gcc_build/lib -l boost_serialization-mt -o
ser_regn.1_60_0
g++ ser_regn.cpp -isystem /opt/boost_1_61_0_b1_gcc_build/include
-L/opt/boost_1_61_0_b1_gcc_build/lib -l boost_serialization-mt -o
ser_regn.1_61_0_b1
./ser_regn.1_60_0
./ser_regn.1_61_0_b1
}}}
The 1_60_0 version gives:
{{{
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<bob>3</bob>
</boost_serialization>
}}}
The 1_61_0_b1 version gives:
{{{
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="14">
<bob>3</bob>
</boost_serialization>
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12141> 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:20 UTC