ccotter added a comment.

> Imaginate that such trivial type could be for example 200KB in size

This should be passed by const ref then correct (listed under "Expensive to 
move (e.g. big BigPOD[]" in the parameter passing guidelines 
<http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#fcall-parameter-passing>)
 ? Are there cases where a big pod type needs to be passed by rvalue ref, 
without std::move where const ref cannot be used instead?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141569/new/

https://reviews.llvm.org/D141569

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to