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

Subject: Re: [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-27 02:38:03


#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
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by anonymous):

 This is the problem which is related to the miss place close braces in
 '''boost/archive/basic_streambuf_locale_saver.hpp'''
 To fix the problem, simply move the namespace close braces into the #endif
 for BOOST_NO_STD_LOCALE. (this works only with the machine with <locale>,
 otherwise, more fixes are required.)[[BR]]
 Cheers.[[BR]]
 Shirley

 Replying to [ticket:1143 anonymous]:
> 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#comment:1>
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