Open
Description
In a number of normative paragraphs, we use the term "dynamically allocated", but it is never defined:
- "Objects can be created dynamically" ([basic.stc.dynamic.general] p1)
- "Implementations should avoid the use of dynamically allocated memory for small callable objects"
- "Implementations should avoid the use of dynamically allocated memory for a small contained value"
We could generally fix this problem by talking about
objects with dynamic storage duration
... instead of
dynamically allocated objects
... or by talking about allocation functions.
Implementations should avoid the use of
-dynamically allocated memory
+storage obtained through allocation functions
for a small contained value.
Also, I'm not too hyped about the recommended practice being copied and pasted into three separate std::function
constructors, but it's not the end of the world.
Note: I've noticed this issue when working on #7260.
Metadata
Metadata
Assignees
Labels
No labels