Boost logo

Boost :

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


One other detail that might help in the investigation: I use hashed indexes in other places with custom key extractors as opposed to const_mem_fun and I get no warnings.

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