|
Boost : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-07-12 10:42:55
Hello Marius,
Marius Lazer ha escrito:
> All,
>
> I'm attempting to upgrade to boost_1_34_0 from boost_1_33_1 and I get
> the following warnings from a hashed_unique index. The same code
> compiles clean on boost_1_33_1 with gcc-4.1.1 and gcc-4.1.2.
>
> Am I doing something wrong or this is a deficiency introduced in 1_34_0?
>
> Thanks,
> Marius
>
> Sample code:
>
> boost::multi_index::hashed_unique
> <
> boost::multi_index::tag<server>,
> boost::multi_index::const_mem_fun
> <
> SessionLink,
> int,
> &SessionLink::serverFD
> >
> >
>
> Generated warnings:
>
> /home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:353: warning:
> passing 'bool' chooses 'int' over 'long unsigned int'[...]
I think this problem is not actually related to Boost.MultiIndex, but
to Boost.Hash. Could you please try to compile the following
// just including this
#include <boost/functional/hash/hash.hpp>
both with Boost 1.33.1 and 1.34? Same behavior? Looking fwd
to your feedback.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk