Bug in serialization::make_nvp?
I'm sorry if this appears twice; I received an e-mail saying it couldn't be
sent because I hadn't subscribed to the mailing list.
When I run the following code, I get this error:
terminate called after throwing an instance of
'boost::archive::xml_archive_exception'
what(): uninitialized exception
Abort
However, if I substitute BOOST_SERIALIZATION_NVP for the make_nvp function,
it works fine. Am I doing something wrong, or is this a bug?
#include <iostream>
#include <fstream>
#include <string>
#include
AMDG stair314 wrote:
I'm sorry if this appears twice; I received an e-mail saying it couldn't be sent because I hadn't subscribed to the mailing list.
When I run the following code, I get this error: terminate called after throwing an instance of 'boost::archive::xml_archive_exception' what(): uninitialized exception Abort
However, if I substitute BOOST_SERIALIZATION_NVP for the make_nvp function, it works fine. Am I doing something wrong, or is this a bug?
<snip>
ar & boost::serialization::make_nvp("example field",a);
The problem is that <example field>10 is not valid XML. You can't use spaces in the argument to make_nvp. In Christ, Steven Watanabe
participants (2)
-
stair314
-
Steven Watanabe