Boost logo

Boost Users :

Subject: [Boost-users] [serialization] avoid nvp for wrapper class
From: dariomt_at_[hidden]
Date: 2014-07-01 11:15:53


Hi list,

How do I tell Boost.Serialization to serialize a wrapper as the primitive
type, without requiring an nvp wrapper? I specifically don't want an extra
level in the xml output.

Example:
given
BOOST_STRONG_TYPEDEF(int, myInt);

I'd like myInt to be serialized as an int.

Thanks!



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