mirror of
https://github.com/boostorg/unordered.git
synced 2025-08-01 20:34:28 +02:00
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:
@@ -181,7 +181,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
||||||
</description>
|
</description>
|
||||||
</constructor>
|
</constructor>
|
||||||
<constructor>
|
<constructor specifiers="explicit">
|
||||||
<parameter name="a">
|
<parameter name="a">
|
||||||
<paramtype>Allocator const&</paramtype>
|
<paramtype>Allocator const&</paramtype>
|
||||||
</parameter>
|
</parameter>
|
||||||
@@ -928,7 +928,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
||||||
</description>
|
</description>
|
||||||
</constructor>
|
</constructor>
|
||||||
<constructor>
|
<constructor specifiers="explicit">
|
||||||
<parameter name="a">
|
<parameter name="a">
|
||||||
<paramtype>Allocator const&</paramtype>
|
<paramtype>Allocator const&</paramtype>
|
||||||
</parameter>
|
</parameter>
|
||||||
@@ -1685,7 +1685,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
||||||
</description>
|
</description>
|
||||||
</constructor>
|
</constructor>
|
||||||
<constructor>
|
<constructor specifiers="explicit">
|
||||||
<parameter name="a">
|
<parameter name="a">
|
||||||
<paramtype>Allocator const&</paramtype>
|
<paramtype>Allocator const&</paramtype>
|
||||||
</parameter>
|
</parameter>
|
||||||
@@ -2483,7 +2483,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
<para>The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
|
||||||
</description>
|
</description>
|
||||||
</constructor>
|
</constructor>
|
||||||
<constructor>
|
<constructor specifiers="explicit">
|
||||||
<parameter name="a">
|
<parameter name="a">
|
||||||
<paramtype>Allocator const&</paramtype>
|
<paramtype>Allocator const&</paramtype>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
@@ -107,8 +107,7 @@ namespace boost
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Should this be explicit?
|
explicit unordered_map(allocator_type const& a)
|
||||||
unordered_map(allocator_type const& a)
|
|
||||||
: base(boost::unordered_detail::default_initial_bucket_count,
|
: base(boost::unordered_detail::default_initial_bucket_count,
|
||||||
hasher(), key_equal(), a)
|
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,
|
: base(boost::unordered_detail::default_initial_bucket_count,
|
||||||
hasher(), key_equal(), a)
|
hasher(), key_equal(), a)
|
||||||
{
|
{
|
||||||
|
@@ -104,8 +104,7 @@ namespace boost
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Should this be explicit?
|
explicit unordered_set(allocator_type const& a)
|
||||||
unordered_set(allocator_type const& a)
|
|
||||||
: base(boost::unordered_detail::default_initial_bucket_count,
|
: base(boost::unordered_detail::default_initial_bucket_count,
|
||||||
hasher(), key_equal(), a)
|
hasher(), key_equal(), a)
|
||||||
{
|
{
|
||||||
@@ -473,8 +472,7 @@ namespace boost
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Should this be explicit?
|
explicit unordered_multiset(allocator_type const& a)
|
||||||
unordered_multiset(allocator_type const& a)
|
|
||||||
: base(boost::unordered_detail::default_initial_bucket_count,
|
: base(boost::unordered_detail::default_initial_bucket_count,
|
||||||
hasher(), key_equal(), a)
|
hasher(), key_equal(), a)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user