Athar, you're right, thanks for your tip anyway. I was trying actually, I need to clear the vector in another part of the code to set new values. (I have pointers that need to be freed).
KRAcatau, you were right, I forgot the () and that caused the error.