User profile: weee
User info |
User name: | weee |
History |
Joined: | |
Number of posts: | 13 |
Latest posts: |
a little confusion about copy return value. thanks for all the replies, so you would say even the code doesn't have any explicit move constructo...
a little confusion about copy return value. came across this code on cprogramming.com about move semantics
[code]
#include <iostream>
...
why c++11 has move semantics instead of doing the actual tricks in compiler? I wonder for such obvious thing (just to detect if it's rvalue) wouldn't it be better to just optimi...
operator[] return (&x)[i]; ok thanks all
so back to the original post, for Vector example, can I say it is safe to do so acros...
operator[] return (&x)[i]; [code]
int x, y, z;
//int x = 1, y = 2, z = 3;
x = 1, y = 2, z = 3;
printf("x = %d, y = %d, z = %d\...
|
This user does not accept Private Messages