2 ms·
Maybe this is just my experience, but it took me far longer to understand the subtleties of move semantics, rvalues, and RVO than to understand pointers and ref
by zach43 9y ago
Maybe this is just my experience, but it took me far longer to understand the subtleties of move semantics, rvalues, and RVO than to understand pointers and references in C++. And this is not even getting into “universal references” (which I don’t have a comfortable understanding of either)
- dcuthbertson 9y agoThere's a YouTube video [1] of a great talk by Scott Meyers: Effective Modern C++ (part 1). He covers universal references and how they relate to other kinds of references in either that one or Part 2 [2]. I found the videos very helpful. Edit - I may have the wrong videos linked. It could be his talk on Universal References [3] that I'm thinking of. It's been a while. [1] https://www.youtube.com/watch?v=fhM24zs1MFA https://www.youtube.com/watch?v=fhM24zs1MFA [2] https://www.youtube.com/watch?v=-7qwpuA3EpU https://www.youtube.com/watch?v=-7qwpuA3EpU [3] https://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-2012-Scott-Meyers-Universal-References-in-Cpp11 https://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-20...