Skip to content

Commit

Permalink
Remove is_destroyed assertions (might fail for shared libs)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Aug 21, 2018
1 parent e1b6894 commit 5d3d714
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions include/boost/archive/impl/archive_serializer_map.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ archive_serializer_map<Archive>::insert(const basic_serializer * bs){
template<class Archive>
BOOST_ARCHIVE_OR_WARCHIVE_DECL void
archive_serializer_map<Archive>::erase(const basic_serializer * bs){
BOOST_ASSERT(! boost::serialization::singleton<
extra_detail::map<Archive>
>::is_destroyed()
);
if(boost::serialization::singleton<
extra_detail::map<Archive>
>::is_destroyed())
Expand Down
1 change: 0 additions & 1 deletion src/extended_type_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ BOOST_SERIALIZATION_DECL void
extended_type_info::key_unregister() const{
if(NULL == get_key())
return;
BOOST_ASSERT(! singleton<detail::ktmap>::is_destroyed());
if(! singleton<detail::ktmap>::is_destroyed()){
detail::ktmap & x = singleton<detail::ktmap>::get_mutable_instance();
detail::ktmap::iterator start = x.lower_bound(this);
Expand Down
2 changes: 1 addition & 1 deletion src/extended_type_info_typeid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ BOOST_SERIALIZATION_DECL void
extended_type_info_typeid_0::type_unregister()
{
if(NULL != m_ti){
BOOST_ASSERT(! singleton<tkmap>::is_destroyed());
// Check that the singleton is still alive (might be unloaded already)
if(! singleton<tkmap>::is_destroyed()){
tkmap & x = singleton<tkmap>::get_mutable_instance();

Expand Down
1 change: 0 additions & 1 deletion src/void_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ void_caster::recursive_register(bool includes_virtual_base) const {

BOOST_SERIALIZATION_DECL void
void_caster::recursive_unregister() const {
BOOST_ASSERT(! void_caster_registry::is_destroyed());
if(void_caster_registry::is_destroyed())
return;

Expand Down

0 comments on commit 5d3d714

Please sign in to comment.