|
|
@@ -103,7 +103,7 @@ public:
|
|
|
}
|
|
|
template <typename InputIt>
|
|
|
void insert(InputIt first, InputIt last) {
|
|
|
- maybe_expand(std::distance(first, last));
|
|
|
+ maybe_expand(static_cast<std::size_t>(std::distance(first, last)));
|
|
|
while (first != last) { insert(*first++); }
|
|
|
}
|
|
|
void insert(std::initializer_list<value_type> ilist) { insert(ilist.begin(), ilist.end()); }
|
|
|
@@ -220,7 +220,7 @@ private:
|
|
|
|
|
|
template <typename Bucket>
|
|
|
auto lookup_impl(Bucket & bkt, key_type const & key) const -> std::pair<decltype(bkt.begin()), decltype(bkt.begin()->begin())> {
|
|
|
- auto listit = bkt.begin() + bucket(key);
|
|
|
+ auto listit = bkt.begin() + static_cast<std::ptrdiff_t>(bucket(key));
|
|
|
auto it = search(listit, key);
|
|
|
return {listit, it};
|
|
|
}
|