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

完善forward_value的例子,添加std::forward的使用。 #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abinghu
Copy link

@abinghu abinghu commented Sep 20, 2013

在move语义的那个例子中,给传递给process_value的参数i进行右值化处理,而使得process_value可以调用右值的版本。当然这里如果参数i是左值的,std::forward是不起任何作用的。

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.

1 participant