Fix allocator for construct from initializer list.

[SVN r57006]
This commit is contained in:
Daniel James
2009-10-19 19:32:09 +00:00
parent 8d4b503e56
commit 2fdd33381c
3 changed files with 57 additions and 4 deletions

View File

@@ -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());
}