Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] Non-default constructor and template class
From: Philipp Münzel (mailing-lists_at_[hidden])
Date: 2015-06-16 16:19:54


>
> you should be able to simply define a private default constructor, if
> boost::serialization::acess is declared as a friend of your class.

In theory. Current bugs in boost::serialization however then prevent the
use in a container, for example serializing a std::set<T> where T has a
private default constructor.


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