-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STL: Down with typename
?
#3718
Comments
I'm happy to omit I think using a macro for this in pre-C++20 code only obfuscates the code. I can't imagine the time spent parsing the keyword is significant enough to offset the cost of macro replacement; I think we'd either improve or pessimize throughput by a negligible amount. I also feel like it's not worth our time to prepare and review PRs that only remove Disclaimer: It's hard for me to be objective, I think "Down with |
We talked about this at the weekly maintainer meeting and we concluded that:
|
I believe that this is done, with my #4191 performing a final audit of both the product and test code. |
Clang16 has implemented WG21-P0634R3, so we can omit
typename
in many places since C++20 mode (see WG21-P2150 for possible simplification in library). See also #3694 which drops optionaltypename
in<mdspan>
.For pre-C++20 components, I think we can use the following conditional compilation pattern.
I'm not sure whether this would
or the way around.
The text was updated successfully, but these errors were encountered: