Skip to content

[temp.explicit] Incorrect comment in Example 2 #8224

@ckwastra

Description

@ckwastra

In the following comment:

draft/source/templates.tex

Lines 7018 to 7019 in bed3aab

template<typename T> auto av = T();
template int av<int>; // OK, variable with type \tcode{int} can be redeclared with type \keyword{auto}

int and auto should be swapped to match the code. It should read: variable with type auto can be redeclared with type int.

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