Boost logo

Boost :

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


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'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:353: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:353: warning:
passing 'bool' chooses 'int' over 'long int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:353: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:353: warning:
passing 'bool' chooses 'int' over 'unsigned int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:353: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp: In member
function 'size_t boost::hash<unsigned char>::operator()(unsigned char)
const':
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:356: warning:
passing 'unsigned char' chooses 'int' over 'long unsigned int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:356: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:356: warning:
passing 'unsigned char' chooses 'int' over 'long int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:356: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:356: warning:
passing 'unsigned char' chooses 'int' over 'unsigned int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:356: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp: In member
function 'size_t boost::hash<short unsigned int>::operator()(short
unsigned int) const':
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:361: warning:
passing 'short unsigned int' chooses 'int' over 'long unsigned int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:361: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:361: warning:
passing 'short unsigned int' chooses 'int' over 'long int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:361: warning:
in call to 'size_t boost::hash_value(int)'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:361: warning:
passing 'short unsigned int' chooses 'int' over 'unsigned int'
/home/mlazer/boost_1_34_0/boost/functional/hash/hash.hpp:361: warning:
in call to 'size_t boost::hash_value(int)'

**********************************************************************
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