[Boost-bugs] [Boost C++ Libraries] #1143: Archive headers appear to be missing multiple(?) include files

Subject: [Boost-bugs] [Boost C++ Libraries] #1143: Archive headers appear to be missing multiple(?) include files
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-05 23:30:33


#1143: Archive headers appear to be missing multiple(?) include files
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.34.1 | Severity: Regression
 Keywords: |
------------------------------+---------------------------------------------
 Here is my test program:

 {{{
 #include <boost/archive/binary_iarchive.hpp>
 #include <boost/archive/binary_oarchive.hpp>
 #include <boost/archive/xml_iarchive.hpp>
 #include <boost/archive/xml_oarchive.hpp>

 int main(void)
 {
         return 0;
 }
 }}}

 Here are the first few lines of gcc output:

 {{{
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error: ISO
 C++ forbids declaration of ‘scoped_ptr’ with no type
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error:
 invalid use of ‘::’
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:72: error:
 expected ‘;’ before ‘<’ token
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:73: error: ISO
 C++ forbids declaration of ‘basic_streambuf_locale_saver’ with no type
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:73: error:
 expected ‘;’ before ‘<’ token
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp: In member
 function ‘void
 boost::archive::boost::archive::basic_binary_iprimitive<Archive, Elem, Tr>
 ::load_binary(void*, size_t)’:
 ../boost/boost/boost/archive/basic_binary_iprimitive.hpp:150: error:
 â€˜throw_exception’ is not a member of ‘boost::archive::boost’
 }}}

 It looks to my untrained eye that there could be several includes missing,
 or perhaps some circular including going on.

 I am using an ubuntu 7.04 distribution, gcc 4.1.2, etc. I am building
 boost myself. I am upgrading from boost 1.32.0, under which I did not
 experience this problem.

 Benjamin.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1143>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC