From 6f9d5cf406a28e98df625b7b6ef1308ed96dd4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E8=80=B3=E5=A0=80=E5=B7=9D=E9=9B=B7=E9=BC=93?= <58223265+neko-horikawaraiko@users.noreply.github.com> Date: Thu, 25 Feb 2021 14:29:34 +0800 Subject: [PATCH] Update item26.md --- 5.RRefMovSemPerfForw/item26.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/5.RRefMovSemPerfForw/item26.md b/5.RRefMovSemPerfForw/item26.md index 685e759..617ff0b 100644 --- a/5.RRefMovSemPerfForw/item26.md +++ b/5.RRefMovSemPerfForw/item26.md @@ -187,12 +187,12 @@ public: ```cpp class SpecialPerson: public Person { public: - SpecialPerson(const SpecialPerson& rhs) //拷贝构造函数, - : Person(rhs) //调用基类的转发构造函数! + SpecialPerson(const SpecialPerson& rhs) //拷贝构造函数,调用基类的 + : Person(rhs) //完美转发构造函数! { … } - SpecialPerson(SpecialPerson&& rhs) //移动构造函数, - : Person(std::move(rhs)) //调用基类的转发构造函数! + SpecialPerson(SpecialPerson&& rhs) //移动构造函数,调用基类的 + : Person(std::move(rhs)) //完美转发构造函数! { … } }; ```