Ticket #3957: patchfile.patch
File patchfile.patch, 2.2 KB (added by , 13 years ago) |
---|
-
libs/serialization/src/shared_ptr_helper.cpp
old new 66 66 collection_type::iterator i = m_pointers->find(sp); 67 67 68 68 if(i == m_pointers->end()){ 69 std::pair<collection_type::iterator, bool> result; 70 shared_ptr<const void> sp(const_cast<void * >(od), void_deleter(true_type)); 71 result = m_pointers->insert(sp); 72 assert(result.second); 73 i = result.first; 69 // temp: std::pair<collection_type::iterator, bool> result; 70 // temp: shared_ptr<const void> sp(const_cast<void * >(od), void_deleter(true_type)); 71 // temp: result = m_pointers->insert(sp); 72 // temp: assert(result.second); 73 // temp: i = result.first; 74 shared_ptr<void> np; 75 return np; 74 76 } 75 77 od = void_upcast( 76 78 *true_type, … … 92 94 ); 93 95 } 94 96 97 BOOST_ARCHIVE_DECL(void) 98 shared_ptr_helper::append(const boost::shared_ptr<const void> &sp){ 99 100 // make tracking array if necessary 101 if(NULL == m_pointers) 102 m_pointers = new collection_type; 103 104 collection_type::iterator i = m_pointers->find(sp); 105 106 if(i == m_pointers->end()){ 107 std::pair<collection_type::iterator, bool> result; 108 result = m_pointers->insert(sp); 109 assert(result.second); 110 } 111 } 112 95 113 // #ifdef BOOST_SERIALIZATION_SHARED_PTR_132_HPP 96 114 BOOST_ARCHIVE_DECL(void) 97 115 shared_ptr_helper::append(const boost_132::shared_ptr<const void> & t){