forked from boostorg/unordered
Fix signed conversion warnings.
This commit is contained in:
@@ -490,7 +490,7 @@ namespace boost { namespace unordered { namespace detail {
|
||||
{
|
||||
if(i == j) return;
|
||||
|
||||
std::size_t distance = std::distance(i, j);
|
||||
std::size_t distance = static_cast<std::size_t>(std::distance(i, j));
|
||||
if(distance == 1) {
|
||||
emplace_impl(
|
||||
boost::unordered::detail::func::construct_value(
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace boost { namespace unordered { namespace detail {
|
||||
inline std::size_t insert_size(I i, I j, typename
|
||||
boost::unordered::detail::enable_if_forward<I, void*>::type = 0)
|
||||
{
|
||||
return std::distance(i, j);
|
||||
return static_cast<std::size_t>(std::distance(i, j));
|
||||
}
|
||||
|
||||
template <class I>
|
||||
|
||||
Reference in New Issue
Block a user