1425. set constructor accepting an allocator as a single parameter should be explicit

Section: 26.4.6 [set] Status: C++11 Submitter: Japan Opened: 2010-08-25 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [set].

View all issues with C++11 status.

Discussion:

Addresses JP-8

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

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

Proposed resolution:

Add explicit.

namespace std {
template <class Key, class Compare = less<Key>,
class Allocator = allocator<Key> >
class set {
public:
...
explicit set(const Allocator&);