mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-01 21:02:07 +00:00
correct rounding
fix memory leak for constructor failure in load_construct_data fix another bug in loading pointers [SVN r86487]
This commit is contained in:
@@ -495,14 +495,16 @@ basic_iarchive_impl::load_pointer(
|
||||
// cyclic strucures
|
||||
object_id_vector.push_back(aobject(t, cid));
|
||||
|
||||
// remember that that the address of these elements could change
|
||||
// when we make another call so don't use the address
|
||||
bpis_ptr->load_object_ptr(
|
||||
ar,
|
||||
object_id_vector[ui].address,
|
||||
co.file_version
|
||||
ar,
|
||||
t,
|
||||
m_pending.version
|
||||
);
|
||||
t = object_id_vector[ui].address;
|
||||
object_id_vector[ui].loaded_as_pointer = true;
|
||||
BOOST_ASSERT(NULL != t);
|
||||
object_id_vector[ui].address = t;
|
||||
object_id_vector[ui].loaded_as_pointer = true;
|
||||
}
|
||||
|
||||
return bpis_ptr;
|
||||
|
||||
Reference in New Issue
Block a user