Skip to content

Conversation

ehds
Copy link
Contributor

@ehds ehds commented Dec 19, 2018

resolve #48

右值引用和左值引用部分
main函数里面第二行的注释

// std::string&& r1 = s1; // 非法, 右值引用不能引用左值

s1并未在上下文出现,应该这里是指上面所写的lv1

@changkun changkun merged commit 6f6531f into changkun:master Dec 19, 2018
@changkun changkun added the typo label Dec 19, 2018
HarrisonDing pushed a commit to HarrisonDing/modern-cpp-tutorial that referenced this pull request Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

第三章-右值引用左值引用一处笔误
2 participants