Boost logo

Boost :

From: Marius Lazer (Marius.Lazer_at_[hidden])
Date: 2007-07-12 10:49:09


Joaquín,

I figured out the problem is in boost.hash which is used by multi-index. That #include alone compiles clean on both 1.31.1 and 1.34.0. I also compared the source code and lots of static_cast<> disappeared in 1.34.0.

Thanks,
Marius

-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Joaquín Mª López Muñoz
Sent: Thursday, July 12, 2007 10:43 AM
To: boost_at_[hidden]
Subject: Re: [boost] multi-index warnings

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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

**********************************************************************
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**********************************************************************


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk