book: fix typo in 03-runtime.md (#95)

fix chapter3.7 perfect.forward code err.
This commit is contained in:
HaoYuan
2020-03-13 17:24:35 +08:00
committed by Changkun Ou
parent a98686bd82
commit 89060d4b96

View File

@@ -470,7 +470,7 @@ void pass(T&& v) {
std::cout << " std::forward 传参: "; std::cout << " std::forward 传参: ";
reference(std::forward<T>(v)); reference(std::forward<T>(v));
std::cout << "static_cast<T&&> 传参: "; std::cout << "static_cast<T&&> 传参: ";
reference(std::forward<T>(v)); reference(static_cast<T&&>(v));
} }
int main() { int main() {
std::cout << "传递右值:" << std::endl; std::cout << "传递右值:" << std::endl;