Boost logo

Boost Users :

Subject: Re: [Boost-users] Bug in serialization::make_nvp?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-09-04 23:41:49


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</example field>
is not valid XML. You can't use spaces in
the argument to make_nvp.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net