Skip to content

Commit 7102286

Browse files
burblebeetkoeppe
authored andcommitted
LWG4451 make_shared should not refer to a type U[N] for runtime N
Fixes NB US 76-139 (C++26 CD).
1 parent b61d476 commit 7102286

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
@@ -4290,13 +4290,13 @@
42904290
\begin{itemdescr}
42914291
\pnum
42924292
\constraints
4293-
\tcode{T} is of the form \tcode{U[]}.
4293+
\tcode{T} is an array of unknown bound.
42944294

42954295
\pnum
42964296
\returns
4297-
A \tcode{shared_ptr} to an object of type \tcode{U[N]}
4298-
with a default initial value,
4299-
where \tcode{U} is \tcode{remove_extent_t<T>}.
4297+
A \tcode{shared_ptr} to an array of
4298+
\tcode{N} elements of type \tcode{remove_extent_t<T>}
4299+
with a default initial value.
43004300

43014301
\pnum
43024302
\begin{example}
@@ -4321,7 +4321,7 @@
43214321
\begin{itemdescr}
43224322
\pnum
43234323
\constraints
4324-
\tcode{T} is of the form \tcode{U[N]}.
4324+
\tcode{T} is an array of known bound.
43254325

43264326
\pnum
43274327
\returns
@@ -4353,13 +4353,13 @@
43534353
\begin{itemdescr}
43544354
\pnum
43554355
\constraints
4356-
\tcode{T} is of the form \tcode{U[]}.
4356+
\tcode{T} is an array of unknown bound.
43574357

43584358
\pnum
43594359
\returns
4360-
A \tcode{shared_ptr} to an object of type \tcode{U[N]},
4361-
where \tcode{U} is \tcode{remove_extent_t<T>} and
4362-
each array element has an initial value of \tcode{u}.
4360+
A \tcode{shared_ptr} to an array of
4361+
\tcode{N} elements of type \tcode{remove_extent_t<T>}
4362+
where each array element has an initial value of \tcode{u}.
43634363

43644364
\pnum
43654365
\begin{example}
@@ -4387,7 +4387,7 @@
43874387
\begin{itemdescr}
43884388
\pnum
43894389
\constraints
4390-
\tcode{T} is of the form \tcode{U[N]}.
4390+
\tcode{T} is an array of known bound.
43914391

43924392
\pnum
43934393
\returns
@@ -4455,8 +4455,8 @@
44554455

44564456
\pnum
44574457
\returns
4458-
A \tcode{shared_ptr} to an object of type \tcode{U[N]},
4459-
where \tcode{U} is \tcode{remove_extent_t<T>}.
4458+
A \tcode{shared_ptr} to an array of
4459+
\tcode{N} elements of type \tcode{remove_extent_t<T>}.
44604460

44614461
\pnum
44624462
\begin{example}

0 commit comments

Comments
 (0)