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
remove unnecessary <T>
from valarray
.
#345
Conversation
<T>
to valarray::operator=(initializer_list<T>)
My preference is to remove redundant template argument lists, it makes the code much easier to read, see e.g. ced4bbd |
OK, I'll fix this pull request. |
It might be worth waiting to see what @zygoloid and others think |
My preference is to leave out the template argument lists whenever naming the injected-class-name. Listing them explicitly makes the reader wonder whether they're somehow different. |
I confirmed consensus. I'll remove |
…into fix_missing_t Conflicts: source/numerics.tex
I re-pull requested. Please check the change. |
<T>
from valarray
.
@@ -6885,7 +6885,7 @@ | |||
\indexlibrary{\idxcode{operator=}!\idxcode{valarray}}% | |||
\indexlibrary{\idxcode{valarray}!\idxcode{operator=}}% | |||
\begin{itemdecl} | |||
valarray& operator=(initializer_list<T> il); | |||
valarray<T>& operator=(initializer_list<T> il); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This <T>
should be removed (i.e., this line shouldn't be part of the diff).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review. I removed the <T>
.
Thanks - I committed a squashed merge of your changes. |
Thanks! |
add
<T>
of return type for consistency.