Title
Inconsistency in allocator_traits::max_size
Status
c++14
Section
[allocator.traits]
Submitter
Marshall Clow

Created on 2013-08-27.00:00:00 last changed 131 months ago

Messages

Date: 2013-09-29.11:37:54

Proposed resolution:

This wording is relative to N3691.

  1. Change [allocator.traits.members] as follows:

    static size_type max_size(const Alloc& a) noexcept;
    
Date: 2013-09-29.11:37:54

[ 2013-09 Chicago ]

No objections, so moved to Immediate.

Accept for Working Paper

Date: 2013-08-27.00:00:00

Section [allocator.traits] says:

static size_type max_size(const Alloc& a) noexcept;

Section [allocator.traits.members] says:

static size_type max_size(Alloc& a) noexcept;

These should be the same.

Discussion:

Pablo (who I believe wrote the allocator_traits proposal) says "The function should take a const reference."

History
Date User Action Args
2014-02-20 13:20:35adminsetstatus: wp -> c++14
2013-09-29 11:37:54adminsetmessages: + msg6661
2013-09-29 11:37:54adminsetstatus: immediate -> wp
2013-09-26 17:10:25adminsetstatus: new -> immediate
2013-08-27 21:40:17adminsetmessages: + msg6575
2013-08-27 00:00:00admincreate