Title
map constructor accepting an allocator as single parameter should be explicit
Status
c++11
Section
[map]
Submitter
Japan

Created on 2010-08-25.00:00:00 last changed 154 months ago

Messages

Date: 2011-05-21.21:15:19

Proposed resolution:

Add explicit.

namespace std {
template <class Key, class T, class Compare =
less<Key>,
class Allocator = allocator<pair<const Key, T> > >
class map {
public:
...
explicit map(const Allocator&);
Date: 2010-10-21.19:47:27

[ Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102. ]

Date: 2010-10-24.03:04:13

Addresses JP-6

Constructor accepting an allocator as a single parameter should be qualified as explicit.

namespace std {
template <class Key, class T, class Compare =
less<Key>,
class Allocator = allocator<pair<const Key, T> > >
class map {
public:
...
map(const Allocator&);
History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-24 03:04:13adminsetstatus: nad editorial -> wp
2010-10-21 19:47:27adminsetmessages: + msg4831
2010-10-21 19:47:27adminsetmessages: + msg4830
2010-08-25 00:00:00admincreate