Le 15/05/2015 16:58, Stephan Witt a écrit :
Yes, I think that it is better passing big objects by reference rather
than by value.

But this is not a good property of C++ compilers than.
1. It's not a constant fact if an object is big.
2. The compiler should generate fast code for this scenario too.
3. This results in hard to read code eventually.

C++ rvalue references fix this problem, and they re implemented in Qt5 (and partly in Qt4.8 AFAICS).

JMarc

Reply via email to