Skip to content

Commit 49b0b74

Browse files
committed
feedback from Pablo: handle allocators with fancy pointers
1 parent e5327e4 commit 49b0b74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

execution.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,9 +4088,9 @@ following new paragraph:</span>
40884088
<pre highlight="c++">
40894089
template&lt;class Alloc>
40904090
concept <i>simple-allocator</i> =
4091-
requires(Alloc alloc, size_t n, typename Alloc::value_type* p) {
4092-
{ alloc.allocate(n) } -> same_as&lt;typename Alloc::value_type*>;
4093-
{ alloc.deallocate(p, n) };
4091+
requires(Alloc alloc, size_t n) {
4092+
{ *alloc.allocate(n) } -> same_as&lt;typename Alloc::value_type&>;
4093+
{ alloc.deallocate(alloc.allocate(n), n) };
40944094
} &&
40954095
copy_constructible&lt;Alloc> &&
40964096
equality_comparable&lt;Alloc>;

0 commit comments

Comments
 (0)