mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Add extra value_type() construction in range-based iterator insertion so implicitly convertible types are supported, i.e. test::proxy
This commit is contained in:
@ -189,7 +189,7 @@ namespace boost {
|
|||||||
void insert(InputIterator first, InputIterator last)
|
void insert(InputIterator first, InputIterator last)
|
||||||
{
|
{
|
||||||
for (auto pos = first; pos != last; ++pos) {
|
for (auto pos = first; pos != last; ++pos) {
|
||||||
table_.insert(*pos);
|
table_.insert(value_type(*pos));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user