Require explicit conversion from allocators.

(Not what it says in the draft standard, but I think that might be a defect).


[SVN r47085]
This commit is contained in:
Daniel James
2008-07-04 22:57:20 +00:00
parent 3640e1e96c
commit d66936a640
3 changed files with 9 additions and 12 deletions

View File

@ -107,8 +107,7 @@ namespace boost
{
}
// TODO: Should this be explicit?
unordered_map(allocator_type const& a)
explicit unordered_map(allocator_type const& a)
: base(boost::unordered_detail::default_initial_bucket_count,
hasher(), key_equal(), a)
{
@ -504,7 +503,7 @@ namespace boost
{
}
unordered_multimap(allocator_type const& a)
explicit unordered_multimap(allocator_type const& a)
: base(boost::unordered_detail::default_initial_bucket_count,
hasher(), key_equal(), a)
{