Skip to content
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

US-15: Use the _t form of type traits #178

Closed
sdutoit opened this issue Sep 19, 2013 · 1 comment
Closed

US-15: Use the _t form of type traits #178

sdutoit opened this issue Sep 19, 2013 · 1 comment
Labels
ballot-comment Response to an NB or ISO comment on a ballot big An issue causing a large set of changes, scattered across most of the text.

Comments

@sdutoit
Copy link
Contributor

sdutoit commented Sep 19, 2013

N3733 US-15 says:

Given the adoption of N3655, it is possible to rephrase uses of the type traits throughout and thus both simplify and clarify the text.

It goes on to propose:

Replace each occurrence of the form “cv typename typetrait<...>::type” or the form “cv typetrait<...>::type” by ”cv typetrait_t<...>”.

@sdutoit
Copy link
Contributor Author

sdutoit commented Sep 23, 2013

Marshall Clow has indicated to me that the consensus in LWG is that this change is worthwhile.

sdutoit added a commit that referenced this issue Sep 24, 2013
Throughout the text, replace uses of traits of the form

  typename decay<T>::type

with the shorter form

  decay_t<T>

using the alias templates introduced in the CD. Do this for all type
traits with such aliases.

Closes #178.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ballot-comment Response to an NB or ISO comment on a ballot big An issue causing a large set of changes, scattered across most of the text.
Projects
None yet
Development

No branches or pull requests

1 participant