So I asked a question on StackOverflow and was wondering if anyone came across this. My program works fine until I add an un-initialized member variable to Point_ class defined in core.hpp. When compiled, this variable wont be initialized and will contain a random variable and will be 4 bytes larger than the original. Why is assigning a vector of that type to another vector of the same type make the iterator crash with: "Debug Assertion Failed!" "Expression: vector iterator not dereferencable"
What made the iterator 'not dereferencable' when adding this un-initialized variable?
Thanks!