Skip to content

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