Skip to content

Commit 9bc8f0b

Browse files
committed
LWG4451 make_shared should not refer to a type U[N] for runtime N
Fixes US 76-139 (C++26 CD).
1 parent 1fcd416 commit 9bc8f0b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

source/memory.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,13 +4416,13 @@
44164416
\begin{itemdescr}
44174417
\pnum
44184418
\constraints
4419-
\tcode{T} is of the form \tcode{U[]}.
4419+
\tcode{T} is an array of unknown bound.
44204420

44214421
\pnum
44224422
\returns
4423-
A \tcode{shared_ptr} to an object of type \tcode{U[N]}
4424-
with a default initial value,
4425-
where \tcode{U} is \tcode{remove_extent_t<T>}.
4423+
A \tcode{shared_ptr} to an array of
4424+
\tcode{N} elements of type \tcode{remove_extent_t<T>}
4425+
with a default initial value.
44264426

44274427
\pnum
44284428
\begin{example}
@@ -4447,7 +4447,7 @@
44474447
\begin{itemdescr}
44484448
\pnum
44494449
\constraints
4450-
\tcode{T} is of the form \tcode{U[N]}.
4450+
\tcode{T} is an array of known bound.
44514451

44524452
\pnum
44534453
\returns
@@ -4479,13 +4479,13 @@
44794479
\begin{itemdescr}
44804480
\pnum
44814481
\constraints
4482-
\tcode{T} is of the form \tcode{U[]}.
4482+
\tcode{T} is an array of known bound.
44834483

44844484
\pnum
44854485
\returns
4486-
A \tcode{shared_ptr} to an object of type \tcode{U[N]},
4487-
where \tcode{U} is \tcode{remove_extent_t<T>} and
4488-
each array element has an initial value of \tcode{u}.
4486+
A \tcode{shared_ptr} to an array of
4487+
\tcode{N} elements of type \tcode{remove_extent_t<T>}
4488+
where each array element has an initial value of \tcode{u}.
44894489

44904490
\pnum
44914491
\begin{example}
@@ -4513,7 +4513,7 @@
45134513
\begin{itemdescr}
45144514
\pnum
45154515
\constraints
4516-
\tcode{T} is of the form \tcode{U[N]}.
4516+
\tcode{T} is an array of known bound.
45174517

45184518
\pnum
45194519
\returns
@@ -4581,8 +4581,8 @@
45814581

45824582
\pnum
45834583
\returns
4584-
A \tcode{shared_ptr} to an object of type \tcode{U[N]},
4585-
where \tcode{U} is \tcode{remove_extent_t<T>}.
4584+
A \tcode{shared_ptr} to an array of
4585+
\tcode{N} elements of type \tcode{remove_extent_t<T>}.
45864586

45874587
\pnum
45884588
\begin{example}

0 commit comments

Comments
 (0)