Created on 2017-07-14.00:00:00 last changed 46 months ago
Proposed resolution:
This resolution is relative to N4687.
Edit [mem.res.pool.mem] as indicated:
boolsynchronized_pool_resource::do_is_equal(const memory_resource& other) const noexcept override;const memory_resource& other) const noexcept override;Returns: this ==
dynamic_cast<const synchronized_pool_resource*>(&other).
Strike [mem.res.pool.mem] paragraph 10, and the immediately preceding declaration of unsynchronized_pool_resource::do_is_equal.
Edit [mem.res.monotonic.buffer.mem] as indicated:
bool do_is_equal(const memory_resource& other) const noexcept override;Returns: this ==
dynamic_cast<const monotonic_buffer_resource*>(&other).
[ 2018-3-17 Adopted in Jacksonville ]
[ 2017-11-01 Moved to Tentatively Ready after 7 positive votes for P0 on c++std-lib. ]
[ 2017-09-18, Casey Carter expands PR to cover the pool resources. ]
Previous resolution: [SUPERSEDED]
Edit [mem.res.monotonic.buffer.mem] as indicated:
bool do_is_equal(const memory_resource& other) const noexcept override;Returns: this ==
dynamic_cast<const monotonic_buffer_resource*>(&other).
[ 2017-07-16, Tim Song comments ]
The pool resource classes appear to also have this issue.
Section [mem.res.monotonic.buffer.mem], paragraph 11 says
bool do_is_equal(const memory_resource& other) const noexcept override;Returns: this == dynamic_cast<const monotonic_buffer_resource*>(&other).
The dynamic_cast adds nothing of value. It is an incorrect cut-and-paste from an example do_is_equal for a more complex resource.
History | |||
---|---|---|---|
Date | User | Action | Args |
2021-02-25 10:48:01 | admin | set | status: wp -> c++20 |
2018-03-18 16:03:30 | admin | set | messages: + msg9733 |
2018-03-18 16:03:30 | admin | set | status: voting -> wp |
2018-02-12 01:13:49 | admin | set | status: ready -> voting |
2017-11-01 18:57:15 | admin | set | messages: + msg9495 |
2017-11-01 18:57:15 | admin | set | status: new -> ready |
2017-09-18 19:34:11 | admin | set | messages: + msg9463 |
2017-07-16 16:00:36 | admin | set | messages: + msg9413 |
2017-07-16 13:01:03 | admin | set | messages: + msg9406 |
2017-07-14 00:00:00 | admin | create |