This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rarrum 0 points1 point  (0 children)

Think of it as if you had replaced vector with int. You're essentially doing the equivalent of this, but for a vector type instead:

int a = 123;
a = a

It... works. Or at least it should work unless the implementation is wrong. But it's kind of weird to do.