Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#491225: libboost-serialization1.35-dev: including hash_map.hpp leads to compile error from utility.hpp

3 views
Skip to first unread message

Andreas Pakulat

unread,
Jul 17, 2008, 3:00:27 PM7/17/08
to
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@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

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Andreas Pakulat

unread,
Aug 2, 2008, 6:10:11 PM8/2/08
to
Hi,

forgot the upstream bugreport url:
http://svn.boost.org/trac/boost/ticket/1822

Andreas

--
You are only young once, but you can stay immature indefinitely.

Andreas Pakulat

unread,
Aug 2, 2008, 6:10:14 PM8/2/08
to
I've just found that this bug is known and fixed upstream. The fix is to
add

#include <boost/mpl/and.hpp>

to the list of includes. Would be nice if somebody could fix the Debian
packages so I don't have to build from sources.

Andreas

--
A few hours grace before the madness begins again.

0 new messages