Index: archive/basic_binary_oprimitive.hpp =================================================================== --- archive/basic_binary_oprimitive.hpp (Revision 42527) +++ archive/basic_binary_oprimitive.hpp (Arbeitskopie) @@ -168,6 +168,6 @@ } //namespace boost } //namespace archive -#include // pop pragams +#include // pop pragmas #endif // BOOST_ARCHIVE_BASIC_BINARY_OPRIMITIVE_HPP Index: archive/basic_text_oprimitive.hpp =================================================================== --- archive/basic_text_oprimitive.hpp (Revision 42527) +++ archive/basic_text_oprimitive.hpp (Arbeitskopie) @@ -30,6 +30,7 @@ #include // isnan #include +#include // BOOST_ARCHIVE_OR_WARCHIVE_DECL #include #include #if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1) Index: archive/basic_xml_archive.hpp =================================================================== --- archive/basic_xml_archive.hpp (Revision 42527) +++ archive/basic_xml_archive.hpp (Arbeitskopie) @@ -36,7 +36,7 @@ xml_archive_tag_mismatch, xml_archive_tag_name_error } exception_code; - xml_archive_exception(exception_code c) + xml_archive_exception(exception_code) {} virtual const char *what( ) const throw( ) { Index: archive/impl/basic_binary_oprimitive.ipp =================================================================== --- archive/impl/basic_binary_oprimitive.ipp (Revision 42527) +++ archive/impl/basic_binary_oprimitive.ipp (Arbeitskopie) @@ -70,6 +70,7 @@ BOOST_ARCHIVE_OR_WARCHIVE_DECL(void) basic_binary_oprimitive::save(const std::string &s) { + // FIXME: Why not casting to std::size_t?? std::size_t l = static_cast(s.size()); this->This()->save(l); save_binary(s.data(), l); Index: archive/detail/common_iarchive.hpp =================================================================== --- archive/detail/common_iarchive.hpp (Revision 42527) +++ archive/detail/common_iarchive.hpp (Arbeitskopie) @@ -60,8 +60,8 @@ } // default implementations of functions which emit start/end tags for // archive types that require them. - void load_start(const char *name){} - void load_end(const char *name){} + void load_start(const char * /*name*/){} + void load_end(const char * /*name*/){} // default archive initialization common_iarchive(unsigned int flags = 0) : basic_iarchive(flags), Index: archive/detail/iserializer.hpp =================================================================== --- archive/detail/iserializer.hpp (Revision 42527) +++ archive/detail/iserializer.hpp (Arbeitskopie) @@ -501,6 +501,7 @@ // convert integers to correct enum to load int current_count = sizeof(t) / ( + // FIXME: Why cast twice? To get the maximal alignment???? static_cast(static_cast(&t[1])) - static_cast(static_cast(&t[0])) ); Index: archive/iterators/dataflow.hpp =================================================================== --- archive/iterators/dataflow.hpp (Revision 42527) +++ archive/iterators/dataflow.hpp (Arbeitskopie) @@ -43,7 +43,7 @@ enum state_enum { is_false = false, is_true = true, - is_indeterminant, + is_indeterminant } m_state; // convert to bool operator bool (){ @@ -53,6 +53,7 @@ // assign from bool tri_state & operator=(bool rhs) { m_state = rhs ? is_true : is_false; + return *this; } tri_state(bool rhs) : m_state(rhs ? is_true : is_false) Index: archive/iterators/head_iterator.hpp =================================================================== --- archive/iterators/head_iterator.hpp (Revision 42527) +++ archive/iterators/head_iterator.hpp (Arbeitskopie) @@ -48,11 +48,11 @@ reference_type dereference_impl(){ if(! m_end){ - while(! m_predicate(* base_reference())) - ++ base_reference(); + while(! m_predicate(* this->base_reference())) + ++ this->base_reference(); m_end = true; } - return * base_reference(); + return * this->base_reference(); } reference_type dereference() const { @@ -60,7 +60,7 @@ } void increment(){ - ++base_reference(); + ++this->base_reference(); } Predicate m_predicate; bool m_end; Index: archive/tmpdir.hpp =================================================================== --- archive/tmpdir.hpp (Revision 42527) +++ archive/tmpdir.hpp (Arbeitskopie) @@ -17,7 +17,7 @@ // See http://www.boost.org for updates, documentation, and revision history. #include // getenv -#include +//#include #include #ifdef BOOST_NO_STDC_NAMESPACE @@ -29,8 +29,8 @@ namespace boost { namespace archive { -inline char * tmpdir(){ - char *dirname; +inline const char * tmpdir(){ + const char *dirname; dirname = std::getenv("TMP"); if(NULL == dirname) dirname = std::getenv("TMPDIR"); Index: archive/codecvt_null.hpp =================================================================== --- archive/codecvt_null.hpp (Revision 42527) +++ archive/codecvt_null.hpp (Arbeitskopie) @@ -22,6 +22,9 @@ #include #include +// FIXME: Is the following missing (similar at end)???? +// #include // must be the last header + namespace std{ #if defined(__LIBCOMO__) using ::mbstate_t; Index: archive/basic_binary_iprimitive.hpp =================================================================== --- archive/basic_binary_iprimitive.hpp (Revision 42527) +++ archive/basic_binary_iprimitive.hpp (Arbeitskopie) @@ -143,7 +143,7 @@ static_cast(address), s ); - if(scount != static_cast(s)) + if(scount != s) boost::throw_exception( archive_exception(archive_exception::stream_error) ); Index: archive/basic_text_iprimitive.hpp =================================================================== --- archive/basic_text_iprimitive.hpp (Revision 42527) +++ archive/basic_text_iprimitive.hpp (Arbeitskopie) @@ -16,11 +16,11 @@ // See http://www.boost.org for updates, documentation, and revision history. -// archives stored as text - note these ar templated on the basic +// archives stored as text - note these are templated on the basic // stream templates to accommodate wide (and other?) kind of characters // -// note the fact that on libraries without wide characters, ostream is -// is not a specialization of basic_ostream which in fact is not defined +// Note the fact that on libraries without wide characters, ostream is +// not a specialization of basic_ostream which in fact is not defined // in such cases. So we can't use basic_ostream but rather // use two template parameters @@ -28,6 +28,8 @@ #include #include // size_t +#include // BOOST_ARCHIVE_OR_WARCHIVE_DECL + #include #if defined(BOOST_NO_STDC_NAMESPACE) namespace std{ @@ -125,6 +127,6 @@ } // namespace archive } // namespace boost -#include // pop pragams +#include // pop pragmas #endif // BOOST_ARCHIVE_BASIC_TEXT_IPRIMITIVE_HPP