1403. Inconsistent definitions for allocator_arg

Section: 23.10.7 [allocator.tag] Status: C++11 Submitter: Japan Opened: 2010-08-25 Last modified: 2016-02-10

Priority: Not Prioritized

View all issues with C++11 status.

Discussion:

Addresses JP-85

There are inconsistent definitions for allocator_arg. In 23.10 [memory] paragraph 1,

constexpr allocator_arg_t allocator_arg = allocator_arg_t();

and in 20.9.1,

const allocator_arg_t allocator_arg = allocator_arg_t();

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

Proposed resolution:

Change "const" to "constexpr" in 20.9.1 as follows.

constexpr allocator_arg_t allocator_arg = allocator_arg_t();