Ticket #1335: boost.archive.diff
File boost.archive.diff, 7.5 KB (added by , 15 years ago) |
---|
-
archive/basic_binary_oprimitive.hpp
168 168 } //namespace boost 169 169 } //namespace archive 170 170 171 #include <boost/archive/detail/abi_suffix.hpp> // pop prag ams171 #include <boost/archive/detail/abi_suffix.hpp> // pop pragmas 172 172 173 173 #endif // BOOST_ARCHIVE_BASIC_BINARY_OPRIMITIVE_HPP -
archive/basic_text_oprimitive.hpp
30 30 #include <cmath> // isnan 31 31 #include <cassert> 32 32 33 #include <boost/archive/detail/auto_link_archive.hpp> // BOOST_ARCHIVE_OR_WARCHIVE_DECL 33 34 #include <boost/config.hpp> 34 35 #include <boost/detail/workaround.hpp> 35 36 #if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1) -
archive/basic_xml_archive.hpp
36 36 xml_archive_tag_mismatch, 37 37 xml_archive_tag_name_error 38 38 } exception_code; 39 xml_archive_exception(exception_code c)39 xml_archive_exception(exception_code) 40 40 {} 41 41 virtual const char *what( ) const throw( ) 42 42 { -
archive/impl/basic_binary_oprimitive.ipp
70 70 BOOST_ARCHIVE_OR_WARCHIVE_DECL(void) 71 71 basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::string &s) 72 72 { 73 // FIXME: Why not casting to std::size_t?? 73 74 std::size_t l = static_cast<unsigned int>(s.size()); 74 75 this->This()->save(l); 75 76 save_binary(s.data(), l); -
archive/detail/common_iarchive.hpp
60 60 } 61 61 // default implementations of functions which emit start/end tags for 62 62 // archive types that require them. 63 void load_start(const char * name){}64 void load_end(const char * name){}63 void load_start(const char * /*name*/){} 64 void load_end(const char * /*name*/){} 65 65 // default archive initialization 66 66 common_iarchive(unsigned int flags = 0) : 67 67 basic_iarchive(flags), -
archive/detail/iserializer.hpp
501 501 502 502 // convert integers to correct enum to load 503 503 int current_count = sizeof(t) / ( 504 // FIXME: Why cast twice? To get the maximal alignment???? 504 505 static_cast<char *>(static_cast<void *>(&t[1])) 505 506 - static_cast<char *>(static_cast<void *>(&t[0])) 506 507 ); -
archive/iterators/dataflow.hpp
43 43 enum state_enum { 44 44 is_false = false, 45 45 is_true = true, 46 is_indeterminant ,46 is_indeterminant 47 47 } m_state; 48 48 // convert to bool 49 49 operator bool (){ … … 53 53 // assign from bool 54 54 tri_state & operator=(bool rhs) { 55 55 m_state = rhs ? is_true : is_false; 56 return *this; 56 57 } 57 58 tri_state(bool rhs) : 58 59 m_state(rhs ? is_true : is_false) -
archive/iterators/head_iterator.hpp
48 48 49 49 reference_type dereference_impl(){ 50 50 if(! m_end){ 51 while(! m_predicate(* base_reference()))52 ++ base_reference();51 while(! m_predicate(* this->base_reference())) 52 ++ this->base_reference(); 53 53 m_end = true; 54 54 } 55 return * base_reference();55 return * this->base_reference(); 56 56 } 57 57 58 58 reference_type dereference() const { … … 60 60 } 61 61 62 62 void increment(){ 63 ++ base_reference();63 ++this->base_reference(); 64 64 } 65 65 Predicate m_predicate; 66 66 bool m_end; -
archive/tmpdir.hpp
17 17 // See http://www.boost.org for updates, documentation, and revision history. 18 18 19 19 #include <cstdlib> // getenv 20 #include <cassert>20 //#include <cassert> 21 21 22 22 #include <boost/config.hpp> 23 23 #ifdef BOOST_NO_STDC_NAMESPACE … … 29 29 namespace boost { 30 30 namespace archive { 31 31 32 inline c har * tmpdir(){33 c har *dirname;32 inline const char * tmpdir(){ 33 const char *dirname; 34 34 dirname = std::getenv("TMP"); 35 35 if(NULL == dirname) 36 36 dirname = std::getenv("TMPDIR"); -
archive/codecvt_null.hpp
22 22 #include <boost/config.hpp> 23 23 #include <boost/archive/detail/auto_link_archive.hpp> 24 24 25 // FIXME: Is the following missing (similar at end)???? 26 // #include <boost/archive/detail/abi_prefix.hpp> // must be the last header 27 25 28 namespace std{ 26 29 #if defined(__LIBCOMO__) 27 30 using ::mbstate_t; -
archive/basic_binary_iprimitive.hpp
143 143 static_cast<Elem *>(address), 144 144 s 145 145 ); 146 if(scount != s tatic_cast<std::streamsize>(s))146 if(scount != s) 147 147 boost::throw_exception( 148 148 archive_exception(archive_exception::stream_error) 149 149 ); -
archive/basic_text_iprimitive.hpp
16 16 17 17 // See http://www.boost.org for updates, documentation, and revision history. 18 18 19 // archives stored as text - note these ar templated on the basic19 // archives stored as text - note these are templated on the basic 20 20 // stream templates to accommodate wide (and other?) kind of characters 21 21 // 22 // note the fact that on libraries without wide characters, ostream is23 // isnot a specialization of basic_ostream which in fact is not defined22 // Note the fact that on libraries without wide characters, ostream is 23 // not a specialization of basic_ostream which in fact is not defined 24 24 // in such cases. So we can't use basic_ostream<IStream::char_type> but rather 25 25 // use two template parameters 26 26 … … 28 28 #include <locale> 29 29 #include <cstddef> // size_t 30 30 31 #include <boost/archive/detail/auto_link_archive.hpp> // BOOST_ARCHIVE_OR_WARCHIVE_DECL 32 31 33 #include <boost/config.hpp> 32 34 #if defined(BOOST_NO_STDC_NAMESPACE) 33 35 namespace std{ … … 125 127 } // namespace archive 126 128 } // namespace boost 127 129 128 #include <boost/archive/detail/abi_suffix.hpp> // pop prag ams130 #include <boost/archive/detail/abi_suffix.hpp> // pop pragmas 129 131 130 132 #endif // BOOST_ARCHIVE_BASIC_TEXT_IPRIMITIVE_HPP