Skip to content

Conversation

@AlisdairM
Copy link
Contributor

The typename keyword is not needed to identify a dependent type in a new expression.

This PR contributes to #3637 by resolving all current uses of typename in a new expression in the library.

The `typename` keyword is not needed to identify a dependant
type in a `new` expression.
@frederick-vs-ja
Copy link
Contributor

Hmm, I still think it would be cleaner to use iter-value-type here. See also #7844.

@AlisdairM
Copy link
Contributor Author

I agree, but that seemed a much bigger change.
We can resolve that preferred direction when LWG can take a look, hopefully for C++29.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants