[null, {"document_url": "http://scottmeyers.blogspot.com/2015/04/new-emc-excerpt-now-online.html", "unformatted_src": "http://2.bp.blogspot.com/-yDhXwJXV9Uo/VOD1ISsRePI/AAAAAAAAAZ4/6kNMWVvf68s/s1600/EMC%2B%2B%2BSample%2BCover.jpg", "src": "http://2.bp.blogspot.com/-yDhXwJXV9Uo/VOD1ISsRePI/AAAAAAAAAZ4/6kNMWVvf68s/s1600/EMC%2B%2B%2BSample%2BCover.jpg", "formatted_filename": "EMC B B BSample BCover", "rendered_width": 151, "rendered_height": 200}, null, null, null, null, null, null, null]


New EMC++ Excerpt Now Online 


Posted by Scott Meyers at 10:14 PM Irfan said...

Hello Scott,

Considering that I’ve not used C++ in almost 10 years, I may as well be about to commit an absolute faux pas, however, I believe that in the second point, you probably wanted to write “copy operations are cheap," instead of the current “its move operations are cheap.” Having decided to act on this desire to share the thought, I can now only hope that I have, in the process, not made an absolute fool of myself.


April 27, 2015 at 3:09 AM Scott Meyers said...

@Irfan: It's correct as written. Check out the Item to see why. (Briefly, it's because using pass by value costs you an extra move.)

April 27, 2015 at 8:16 AM