Skip to content

[dcl.typedef] p2 Unexplained lookup "error" in example #5107

@jensmaurer

Description

@jensmaurer
using cell = pair<void*, cell*>;    // error

Two issues: pair is undefined here (is it std::pair?) and the error is unexplained.
The explanation for the error is in [basic.scope.pdecl] p4:

The locus of a using-declarator that does not name a constructor is immediately after the using-declarator (9.9).

Source: Vladimir Grigoriev on std-discussion 2021-11-13

Metadata

Metadata

Assignees

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