Skip to content

CWG3027 [temp.type] Equivalence of pack-index-specifiers #700

Description

@cor3ntin

[temp.type] does seem to suggest any two pack-index-specifiers whose expression is dependent are equivalent if their expression are equivalent.

If the constant-expression of a pack-index-specifier is value-dependent, two such pack-index-specifiers refer to the same type only if their constant-expressions are equivalent ([temp.over.link]). Otherwise, two such pack-index-specifiers refer to the same type only if their indexes have the same value.

quid of U...[expr] and T...[expr] ?

Suggestion

If the constant-expression of a pack-index-specifier is value-dependent, two such pack-index-specifiers whose typedef-name are equivalent refer to the same type only if their constant-expressions are equivalent ([temp.over.link]). Otherwise, two such pack-index-specifiers refer to the same type only if their indexes have the same value.

Activity

  1. changed the title [-][temp.type] Equivalence of pack-index-specifiers[/-] [+]CWG3027 [temp.type] Equivalence of pack-index-specifiers[/+] on May 11, 2025
  2. jensmaurer commented on May 11, 2025

    @jensmaurer
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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