Skip to content

[basic.stc.dynamic.general], [func.wrap.func], [any.class.general] "Dynamically allocated" is not defined #7261

Open
@Eisenwave

Description

@Eisenwave

In a number of normative paragraphs, we use the term "dynamically allocated", but it is never defined:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions