Skip to content

Commit a5f24f3

Browse files
committed
LWG3900 The allocator_arg_t overloads of generator::promise_type::operator new should not be constrained
1 parent 1ef0eb3 commit a5f24f3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/ranges.tex

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17012,13 +17012,11 @@
1701217012
requires @\libconcept{same_as}@<Allocator, void> || @\libconcept{default_initializable}@<Allocator>;
1701317013

1701417014
template<class Alloc, class... Args>
17015-
requires @\libconcept{same_as}@<Allocator, void> || @\libconcept{convertible_to}@<const Alloc&, Allocator>
17016-
void* operator new(size_t size, allocator_arg_t, const Alloc& alloc, const Args&...);
17015+
void* operator new(size_t size, allocator_arg_t, const Alloc& alloc, const Args&...);
1701717016

1701817017
template<class This, class Alloc, class... Args>
17019-
requires @\libconcept{same_as}@<Allocator, void> || @\libconcept{convertible_to}@<const Alloc&, Allocator>
17020-
void* operator new(size_t size, const This&, allocator_arg_t, const Alloc& alloc,
17021-
const Args&...);
17018+
void* operator new(size_t size, const This&, allocator_arg_t, const Alloc& alloc,
17019+
const Args&...);
1702217020

1702317021
void operator delete(void* pointer, size_t size) noexcept;
1702417022

@@ -17220,11 +17218,9 @@
1722017218
requires @\libconcept{same_as}@<Allocator, void> || @\libconcept{default_initializable}@<Allocator>;
1722117219

1722217220
template<class Alloc, class... Args>
17223-
requires @\libconcept{same_as}@<Allocator, void> || @\libconcept{convertible_to}@<const Alloc&, Allocator>
1722417221
void* operator new(size_t size, allocator_arg_t, const Alloc& alloc, const Args&...);
1722517222

1722617223
template<class This, class Alloc, class... Args>
17227-
requires @\libconcept{same_as}@<Allocator, void> || @\libconcept{convertible_to}@<const Alloc&, Allocator>
1722817224
void* operator new(size_t size, const This&, allocator_arg_t, const Alloc& alloc,
1722917225
const Args&...);
1723017226
\end{itemdecl}
@@ -17247,6 +17243,9 @@
1724717243
\pnum
1724817244
\mandates
1724917245
\tcode{allocator_traits<B>::pointer} is a pointer type.
17246+
For the overloads with a template parameter \tcode{Alloc},
17247+
\tcode{\libconcept{same_as}<Allocator, void> || \libconcept{convertible_to}<const Alloc\&, Allocator>}
17248+
is modeled.
1725017249

1725117250
\pnum
1725217251
\effects

0 commit comments

Comments
 (0)