quote:Once I step out of the function will a non-pointer double which has been pushed into the vector still exist without any problems once the function exists
Yes, if ''desciptors'' is a member of the Observation class then it will exist until the Observation object is destroyed. Anything you''ve pushed back into it will be kept. The vector will resize itself to fit however many doubles you push into it. You could equally use a deque (double ended queue) if all you''re doing is pushing and popping. A stack would be best. However there isn''t one in vc++6.0 stl. There are in gcc and stlport I believe)
peace