mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-24 04:12:28 +00:00
@@ -113,11 +113,10 @@ public:
|
||||
transform_width(BOOST_PFTO_WRAPPER(T) start) :
|
||||
super_t(Base(BOOST_MAKE_PFTO_WRAPPER(static_cast< T >(start)))),
|
||||
m_buffer_out_full(false),
|
||||
m_buffer_out(),
|
||||
// To disable GCC warning, but not truly necessary
|
||||
//(m_buffer_in will be initialized later before being
|
||||
//used because m_remaining_bits == 0)
|
||||
m_buffer_in(),
|
||||
m_buffer_in(0),
|
||||
m_remaining_bits(0),
|
||||
m_end_of_sequence(false)
|
||||
{}
|
||||
|
||||
@@ -66,6 +66,7 @@ void save(
|
||||
){
|
||||
int which = v.which();
|
||||
ar << BOOST_SERIALIZATION_NVP(which);
|
||||
typedef typename boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)>::types types;
|
||||
variant_save_visitor<Archive> visitor(ar);
|
||||
v.apply_visitor(visitor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user