Created on 2016-06-04.00:00:00 last changed 89 months ago
Proposed resolution:
This wording is relative to N4582.
Modify [memory.resource.class] as indicated:
class memory_resource { […]protectedprivate: virtual void* do_allocate(size_t bytes, size_t alignment) = 0; virtual void do_deallocate(void* p, size_t bytes, size_t alignment) = 0; virtual bool do_is_equal(const memory_resource& other) const noexcept = 0; };
Modify [memory.resource.prot] as indicated:
[Drafting note: I don't know whether it's too late to change the section mnemonic [memory.resource.prot] to e.g. [memory.resource.priv] or perhaps [memory.resource.virt].]
memory_resource
protectedprivate virtual member functions [memory.resource.prot]
[ 2016-06 Oulu ]
Looks fine, check with Pablo to make sure that was his intent.
Pablo replied that this was correct.
Friday: status to Immediate
memory_resource doesn't define any behavior, it's just an interface. Furthermore, we don't say whether the functions at [memory.resource.prot] should or should not be defined by implementations. Presumably they should not. Those functions are not designed to be called by derived classes, and thus should not be protected.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-30 20:15:43 | admin | set | status: wp -> c++17 |
2016-06-28 13:14:43 | admin | set | status: immediate -> wp |
2016-06-27 16:42:33 | admin | set | status: new -> immediate |
2016-06-20 16:35:58 | admin | set | messages: + msg8183 |
2016-06-05 19:06:56 | admin | set | messages: + msg8170 |
2016-06-04 00:00:00 | admin | create |