$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Serialization] Free-standing serialize function for "enum class"
From: Rüdiger Berlich (r.berlich_at_[hidden])
Date: 2016-10-13 13:37:13
Hi Björn,
>
>> I have for a while suspected a problem with the serialization of an âenum classâ item (currently with Boost 1.61 on Ubuntu 16.04), and have written a small test program to further examine any potential problems. While the generated XML looks fine and I cannot see any problems with the enum class, my custom, free-standing âserializeâ function does not get called.
>
> Boost.Serialization automatically converts an enum into an int before
> it is serialized.
>
>
so what you are saying is that in
oa << BOOST_SERIALIZATION_NVP(x);
x is first converted to an int, and as there no longer is a test_enum to be serialized, my own serialize()-function never gets called ?
Thanks for the hint and Kind Regards,
Beet