Cpp-Primer icon indicating copy to clipboard operation
Cpp-Primer copied to clipboard

The code in ex9_43.cpp may confuse the readers.

Open jimages opened this issue 7 years ago • 0 comments

Hi,

Considering the situation where many newbie, i.e. me :) , will refer to the repo. They may feel confused when they read string const& oldVal, string const& newVal in ex9_44 and ex9_43 for the the book only mentions the const string &foo Which is the same case for the string{ cur, cur + oldVal.size() }.

I think we should add some notes for readability or make some changes.

jimages avatar Apr 04 '18 14:04 jimages