mirror of
https://github.com/boostorg/unordered.git
synced 2025-10-05 04:01:03 +02:00
Fix allocator for construct from initializer list.
[SVN r57006]
This commit is contained in:
@@ -199,7 +199,7 @@ namespace boost
|
||||
const allocator_type &a = allocator_type())
|
||||
: table_(boost::unordered_detail::initial_size(
|
||||
list.begin(), list.end(), n),
|
||||
hf, eql, allocator_type())
|
||||
hf, eql, a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
}
|
||||
@@ -699,7 +699,7 @@ namespace boost
|
||||
const allocator_type &a = allocator_type())
|
||||
: table_(boost::unordered_detail::initial_size(
|
||||
list.begin(), list.end(), n),
|
||||
hf, eql, allocator_type())
|
||||
hf, eql, a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
}
|
||||
|
Reference in New Issue
Block a user