Ticket #1335: boost.archive.diff

File boost.archive.diff, 7.5 KB (added by jensseidel@…, 15 years ago)

Updated patch

  • archive/basic_binary_oprimitive.hpp

     
    168168} //namespace boost
    169169} //namespace archive
    170170
    171 #include <boost/archive/detail/abi_suffix.hpp> // pop pragams
     171#include <boost/archive/detail/abi_suffix.hpp> // pop pragmas
    172172
    173173#endif // BOOST_ARCHIVE_BASIC_BINARY_OPRIMITIVE_HPP
  • archive/basic_text_oprimitive.hpp

     
    3030#include <cmath> // isnan
    3131#include <cassert>
    3232
     33#include <boost/archive/detail/auto_link_archive.hpp> // BOOST_ARCHIVE_OR_WARCHIVE_DECL
    3334#include <boost/config.hpp>
    3435#include <boost/detail/workaround.hpp>
    3536#if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1)
  • archive/basic_xml_archive.hpp

     
    3636        xml_archive_tag_mismatch,
    3737        xml_archive_tag_name_error
    3838    } exception_code;
    39     xml_archive_exception(exception_code c)
     39    xml_archive_exception(exception_code)
    4040    {}
    4141    virtual const char *what( ) const throw( )
    4242    {
  • archive/impl/basic_binary_oprimitive.ipp

     
    7070BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
    7171basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::string &s)
    7272{
     73    // FIXME: Why not casting to std::size_t??
    7374    std::size_t l = static_cast<unsigned int>(s.size());
    7475    this->This()->save(l);
    7576    save_binary(s.data(), l);
  • archive/detail/common_iarchive.hpp

     
    6060    }
    6161    // default implementations of functions which emit start/end tags for
    6262    // 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*/){}
    6565    // default archive initialization
    6666    common_iarchive(unsigned int flags = 0) :
    6767        basic_iarchive(flags),
  • archive/detail/iserializer.hpp

     
    501501       
    502502        // convert integers to correct enum to load
    503503        int current_count = sizeof(t) / (
     504            // FIXME: Why cast twice? To get the maximal alignment????
    504505            static_cast<char *>(static_cast<void *>(&t[1]))
    505506            - static_cast<char *>(static_cast<void *>(&t[0]))
    506507        );
  • archive/iterators/dataflow.hpp

     
    4343    enum state_enum {
    4444        is_false = false,
    4545        is_true = true,
    46         is_indeterminant,
     46        is_indeterminant
    4747    } m_state;
    4848    // convert to bool
    4949    operator bool (){
     
    5353    // assign from bool
    5454    tri_state & operator=(bool rhs) {
    5555        m_state = rhs ? is_true : is_false;
     56        return *this;
    5657    }
    5758    tri_state(bool rhs) :
    5859        m_state(rhs ? is_true : is_false)
  • archive/iterators/head_iterator.hpp

     
    4848
    4949    reference_type dereference_impl(){
    5050        if(! m_end){
    51             while(! m_predicate(* base_reference()))
    52                 ++ base_reference();
     51            while(! m_predicate(* this->base_reference()))
     52                ++ this->base_reference();
    5353            m_end = true;
    5454        }
    55         return * base_reference();
     55        return * this->base_reference();
    5656    }
    5757
    5858    reference_type dereference() const {
     
    6060    }
    6161
    6262    void increment(){
    63         ++base_reference();
     63        ++this->base_reference();
    6464    }
    6565    Predicate m_predicate;
    6666    bool m_end;
  • archive/tmpdir.hpp

     
    1717//  See http://www.boost.org for updates, documentation, and revision history.
    1818
    1919#include <cstdlib> // getenv
    20 #include <cassert>
     20//#include <cassert>
    2121
    2222#include <boost/config.hpp>
    2323#ifdef BOOST_NO_STDC_NAMESPACE
     
    2929namespace boost {
    3030namespace archive {
    3131
    32 inline char * tmpdir(){
    33     char *dirname;
     32inline const char * tmpdir(){
     33    const char *dirname;
    3434    dirname = std::getenv("TMP");
    3535    if(NULL == dirname)
    3636        dirname = std::getenv("TMPDIR");
  • archive/codecvt_null.hpp

     
    2222#include <boost/config.hpp>
    2323#include <boost/archive/detail/auto_link_archive.hpp>
    2424
     25// FIXME: Is the following missing (similar at end)????
     26// #include <boost/archive/detail/abi_prefix.hpp> // must be the last header
     27
    2528namespace std{
    2629    #if defined(__LIBCOMO__)
    2730        using ::mbstate_t;
  • archive/basic_binary_iprimitive.hpp

     
    143143        static_cast<Elem *>(address),
    144144        s
    145145    );
    146     if(scount != static_cast<std::streamsize>(s))
     146    if(scount != s)
    147147        boost::throw_exception(
    148148            archive_exception(archive_exception::stream_error)
    149149        );
  • archive/basic_text_iprimitive.hpp

     
    1616
    1717//  See http://www.boost.org for updates, documentation, and revision history.
    1818
    19 // archives stored as text - note these ar templated on the basic
     19// archives stored as text - note these are templated on the basic
    2020// stream templates to accommodate wide (and other?) kind of characters
    2121//
    22 // note the fact that on libraries without wide characters, ostream is
    23 // is not a specialization of basic_ostream which in fact is not defined
     22// Note the fact that on libraries without wide characters, ostream is
     23// not a specialization of basic_ostream which in fact is not defined
    2424// in such cases.   So we can't use basic_ostream<IStream::char_type> but rather
    2525// use two template parameters
    2626
     
    2828#include <locale>
    2929#include <cstddef> // size_t
    3030
     31#include <boost/archive/detail/auto_link_archive.hpp> // BOOST_ARCHIVE_OR_WARCHIVE_DECL
     32
    3133#include <boost/config.hpp>
    3234#if defined(BOOST_NO_STDC_NAMESPACE)
    3335namespace std{
     
    125127} // namespace archive
    126128} // namespace boost
    127129
    128 #include <boost/archive/detail/abi_suffix.hpp> // pop pragams
     130#include <boost/archive/detail/abi_suffix.hpp> // pop pragmas
    129131
    130132#endif // BOOST_ARCHIVE_BASIC_TEXT_IPRIMITIVE_HPP