Need help?
<- Back

Comments (29)

  • tom_
    If the author is reading: both complicated examples are the same.
  • boguscoder
    Title made me think they’d just show that move is just a simple cast, nothing more
  • ptspts
    The HN title is incorrect. It should contain std::move.
  • fluoridation
    Unfortunately, I don't think there's getting away from just understanding value semantics to get the correct and/or performant behavior.
  • sprocketz
    What is that makes NVRO so much more difficult to implement? Why couldn't they mandate that just like RVO? Do compilers literally just special case a simple return statement of a direct construction or something?
  • hn45e7pbij
    I'd push back slightly on move — at small scale the opposite has been true for me.