3 ms·
C++11 has some tricky changes which are way not obvious at the first glance. A few useful resources I found: * http://thbecker.net/articles/rvalue_references/s
by shmerl 12y ago
C++11 has some tricky changes which are way not obvious at the first glance. A few useful resources I found:
* http://thbecker.net/articles/rvalue_references/section_01.html http://thbecker.net/articles/rvalue_references/section_01.ht...
* https://en.wikipedia.org/wiki/Copy_elision https://en.wikipedia.org/wiki/Copy_elision
* http://en.cppreference.com/w/cpp/language/eval_order http://en.cppreference.com/w/cpp/language/eval_order
* https://akrzemi1.wordpress.com https://akrzemi1.wordpress.com
* https://dl.dropboxusercontent.com/u/13100941/C%2B%2B11.pdf https://dl.dropboxusercontent.com/u/13100941/C%2B%2B11.pdf
Understanding the combination of copy elision and move semantics (when and how they are applied) can require one to read the standard.
C++11 is not simpler than older C++, but using it is easier, if you have a good understanding of it.