Skip to content

[dcl.init.general] Zero- and default-initialization of cv-qualified std::meta::info objects #920

@frederick-vs-ja

Description

@frederick-vs-ja

Full name of submitter (unless configured in github; will be published with the issue): Jiang An

Reference (section label): [dcl.init.general]

Link to reflector thread (if any):

Issue description:

Related to CWG3089.

In [dcl.init.general] p6.1 and [dcl.init.general] p7.3, we seems to be only special-casing cv-unqualified std::meta::info. Perhaps we should handle cv-qualified versions together.

Suggested resolution:

Modify [dcl.init.general] as indicated:

[...]
(6.1) - if T is (possibly cv-qualified) std​::​meta​::​info, the object is initialized to a null reflection value;
[...]
(7.3) - If T is (possibly cv-qualified) std​::​meta​::​info, the object is zero-initialized.
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions