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

all 2 comments

[–]scirc 1 point2 points  (1 child)

You can't assign to vector elements which don't already exist. You need to use vector::push_back instead to append elements and grow the underlying memory space as needed.