mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 05:54:29 +02:00
Try to avoid more warnings
This commit is contained in:
@@ -171,7 +171,7 @@ namespace boost
|
|||||||
const unsigned int size_t_bits = std::numeric_limits<std::size_t>::digits;
|
const unsigned int size_t_bits = std::numeric_limits<std::size_t>::digits;
|
||||||
// ceiling(std::numeric_limits<T>::digits / size_t_bits) - 1
|
// ceiling(std::numeric_limits<T>::digits / size_t_bits) - 1
|
||||||
const int length = (std::numeric_limits<T>::digits - 1)
|
const int length = (std::numeric_limits<T>::digits - 1)
|
||||||
/ size_t_bits;
|
/ static_cast<int>(size_t_bits);
|
||||||
|
|
||||||
std::size_t seed = 0;
|
std::size_t seed = 0;
|
||||||
T positive = val < 0 ? -1 - val : val;
|
T positive = val < 0 ? -1 - val : val;
|
||||||
@@ -192,7 +192,7 @@ namespace boost
|
|||||||
const unsigned int size_t_bits = std::numeric_limits<std::size_t>::digits;
|
const unsigned int size_t_bits = std::numeric_limits<std::size_t>::digits;
|
||||||
// ceiling(std::numeric_limits<T>::digits / size_t_bits) - 1
|
// ceiling(std::numeric_limits<T>::digits / size_t_bits) - 1
|
||||||
const int length = (std::numeric_limits<T>::digits - 1)
|
const int length = (std::numeric_limits<T>::digits - 1)
|
||||||
/ size_t_bits;
|
/ static_cast<int>(size_t_bits);
|
||||||
|
|
||||||
std::size_t seed = 0;
|
std::size_t seed = 0;
|
||||||
|
|
||||||
@@ -236,7 +236,7 @@ namespace boost
|
|||||||
inline void hash_combine_impl(boost::uint64_t& h,
|
inline void hash_combine_impl(boost::uint64_t& h,
|
||||||
boost::uint64_t k)
|
boost::uint64_t k)
|
||||||
{
|
{
|
||||||
const uint64_t m = UINT64_C(0xc6a4a7935bd1e995);
|
const boost::uint64_t m = UINT64_C(0xc6a4a7935bd1e995);
|
||||||
const int r = 47;
|
const int r = 47;
|
||||||
|
|
||||||
k *= m;
|
k *= m;
|
||||||
|
Reference in New Issue
Block a user