Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4370: [Serialization] map with private default constructor does not compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-17 16:42:26
#4370: [Serialization] map with private default constructor does not compile
---------------------------+------------------------------------------------
Reporter: anonymous | Owner: ramey
Type: Bugs | Status: closed
Milestone: Boost 1.44.0 | Component: serialization
Version: Boost 1.40.0 | Severity: Problem
Resolution: wontfix | Keywords:
---------------------------+------------------------------------------------
Comment (by boost@â¦):
Replying to [comment:8 boost@â¦]:
Forgot formatting:
{{{
template <typename Archive, typename First, typename Second>
void load_construct_data(Archive & ar, std::pair<First, Second> * t,
unsigned int const)
{
typedef BOOST_DEDUCED_TYPENAME remove_const<First>::type
NonConstFirst;
NonConstFirst &first = const_cast<NonConstFirst&>(t->first);
access::construct(&first);
access::construct(&t->second);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4370#comment:9> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC