From cf5357df806668830e8bba7fc31914ac66567826 Mon Sep 17 00:00:00 2001 From: Rekord <1324596506@qq.com> Date: Wed, 26 Jul 2023 20:07:13 +0800 Subject: [PATCH] fix: fix 13.16 --- ch13/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch13/README.md b/ch13/README.md index 9dd4816e7..15e2c5728 100644 --- a/ch13/README.md +++ b/ch13/README.md @@ -132,7 +132,7 @@ Yes, it does. Because, as described, the newly defined copy constructor can hand ## Exercise 13.16: >What if the parameter in f were const numbered&? Does that change the output? If so, why? What output gets generated? -Yes, the output will change. Because no copy operation happens within function `f`. Thus, the three Output are the same. +No, the output will change but the three Output are not the same, because copy constructor has been executed during variable definition. ## Exercise 13.17 > Write versions of numbered and f corresponding to the previous three exercises and check whether you correctly predicted the output.