File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11<?xml version =' 1.0' encoding =' utf-8' standalone =' no' ?>
22<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
33
4- <issue num =" 4451" status =" New " >
4+ <issue num =" 4451" status =" Immediate " >
55<title >`make_shared` should not refer to a type `U[N]` for runtime N</title >
66<section ><sref ref =" [util.smartptr.shared.create]" /></section >
77<submitter >Jonathan Wakely</submitter >
1414The overloads of `make_shared` and `allocate_shared` for creating
1515<code >shared_ptr< T[]> </code > refer to an object a type `U[N]`
1616where `N` is a function parameter not a constant expression.
17+ Since `N` is allowed to be zero, this also allows `U[0]` which is
18+ an invalid type and so totally ill-formed.
1719</p >
20+
21+ <note >Kona 2025-11-06; approved by LWG. Status changed: New → Immediate.</note >
1822</discussion >
1923
2024<resolution >
You can’t perform that action at this time.
0 commit comments