Why the destructor of vector is called after "g" call? Thank you.
int g(vector vi);
void f(vector&& vi) {
g(move(vi));
} Why the destructor of vector is called after "g" call? Thank you.
int g(vector vi);
void f(vector&& vi) {
g(move(vi));
}
Replies
Know the answer? Post it — somebody with the same question will find it here.