|
Boost Users : |
Subject: Re: [Boost-users] [Serialization] STL Containers and Non-Default Constructors
From: Bjorn Reese (breese_at_[hidden])
Date: 2015-05-23 13:54:26
On 05/20/2015 08:17 AM, Trevor Thoele wrote:
> The only solutions I can think of to circumvent this problem would be to
> require a public (the code ultimately fails in std code, which I guess you
> may be able to friend but would be quite strange) default constructor, or to
> hand-roll STL container serialization through non-intrusive
> serialize/save/load overloads and skip the provided overloads entirely.
I think boost/serialization/list.hpp checks for the default constructor
in the wrong way. If you use std::vector instead of std::list, then it
compiles.
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