Skip to content

add_const_t VS plain const #7845

Open
@frederick-vs-ja

Description

@frederick-vs-ja

The standard wording sometimes uses add_const_t and add_volatile_t when plain const and volatile are sufficient. IIUC the difference is that add_*_t block template argument deduction like type_identity_t, but we never use add_*_t in such contexts.

Would it be better to use plain const and volatile?

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