Skip to content

Commit 73ced79

Browse files
committed
[expr.new] Avoid "heap allocation"
The term "heap allocation" is not normatively defined, and the term "heap" has other meaning in the standard. Here "heap allocation" is typical implementation details, likely close to "free store". To clarify the intent, it would be better never used at all, even in an example.
1 parent 802ce67 commit 73ced79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@
30243024
\enterexample
30253025
\begin{codeblock}
30263026
void mergeable(int x) {
3027-
// These heap allocations are safe for merging:
3027+
// These allocations are safe for merging:
30283028
std::unique_ptr<char[]> a{new (std::nothrow) char[8]};
30293029
std::unique_ptr<char[]> b{new (std::nothrow) char[8]};
30303030
std::unique_ptr<char[]> c{new (std::nothrow) char[x]};

0 commit comments

Comments
 (0)