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

[any] Rename the ValueType template parameter to T. #1220

Merged
merged 1 commit into from Dec 13, 2016

Conversation

jensmaurer
Copy link
Member

The parameter has a confusing name: It is not actually the value type
contained in the 'any'.
Where the new T clashes with an existing use of T, rename the latter to VT,
since this is actually the value type of the 'any'.

Fixes #1202.

template<class ValueType>
any(ValueType&& value);
template<class T>
any(T&& value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be indented.

template<class ValueType>
any& operator=(ValueType&& rhs);
template<class T>
any& operator=(T&& rhs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise here.

The parameter has a confusing name: It is not actually the value type
contained in the 'any'.
Where the new T clashes with an existing use of T, rename the latter to VT,
since this is actually the value type of the 'any'.

Fixes cplusplus#1202.
@jensmaurer
Copy link
Member Author

Done.

@tkoeppe tkoeppe merged commit 8b1f6cc into cplusplus:master Dec 13, 2016
@jensmaurer jensmaurer deleted the b20 branch December 13, 2016 21:32
@jensmaurer jensmaurer mentioned this pull request Feb 8, 2017
lichray added a commit to lichray/draft that referenced this pull request May 16, 2017
jwakely pushed a commit that referenced this pull request May 18, 2017
Restores the changes made by #1220
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.

None yet

2 participants