[pkg-boost-devel] Bug#491225: libboost-serialization1.35-dev: including hash_map.hpp leads to compile error from utility.hpp

Andreas Pakulat apaku at gmx.de
Thu Jul 17 18:49:45 UTC 2008


Package: libboost-serialization1.35-dev
Version: 1.35.0-5
Severity: important

Hi,

I just found that somehow the serialization/utility.hpp header seems to
be broken in the 1.35 package. The following file:

,----[ foo.cpp ]-
| #include <boost/serialization/hash_map.hpp>
`----

produces this error:
,----
| andreas at morpheus:~/temp/testboostinc>g++ -o foo foo.cpp
| In file included from /usr/include/c++/4.3/ext/hash_map:64,
|                  from /usr/include/boost/serialization/hash_map.hpp:22,
|                  from foo.cpp:1:
| /usr/include/c++/4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
| In file included from /usr/include/boost/serialization/hash_map.hpp:24,
|                  from foo.cpp:1:
| /usr/include/boost/serialization/utility.hpp:48: error: expected template-name before ‘<’ token
| /usr/include/boost/serialization/utility.hpp:48: error: expected `{' before ‘<’ token
| /usr/include/boost/serialization/utility.hpp:48: error: expected unqualified-id before ‘<’ token
`----

The code around line 48 in utility.hpp looks like this:
,----
| /// specialization of is_bitwise_serializable for pairs
| template <class T, class U>
| struct is_bitwise_serializable<std::pair<T,U> >
|  : public mpl::and_<is_bitwise_serializable<T>,is_bitwise_serializable<U> >
| {
| };
`----

Andreas

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.23
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libboost-serialization1.35-dev depends on:
ii  libboost-serialization1.35.0  1.35.0-5   serialization library for C++
ii  libboost1.35-dev              1.35.0-5   Boost C++ Libraries development fi

libboost-serialization1.35-dev recommends no packages.

-- no debconf information





More information about the pkg-boost-devel mailing list