How to know if compiler will use copy elision and if I need to use std::move
How can I trust the compiler for non-guaranteed copy elision (in case of return value optimization) in this example code:
How can I trust the compiler for non-guaranteed copy elision (in case of return value optimization) in this example code: