T& Head() { ASSERT(items > 0); return vector[start]; }
hat head method is used for ? do it concern only Vector or Array use it aswell ?
T& Head() { ASSERT(items > 0); return vector[start]; }
Can you confirm my point of view : Upp calling Head before Doing any action on a Vector that could raise a crash ?
Have you some tips and trick to do propper code and prevent all this Boards effect that can be raised by a bad usage of Vector ?
However, I still got a blurred vision on why when my code running, the first 2 hours is ok, but after a long time this error will randomly spawn like one of my vector Have been emptied but my programme dont do that once. have you never encounter this kind of "case" ?
Possible clue: Do you use threads? If so, does this vector is shared between threads. or not local in any way? Then it might be a problem with thread access, in which case the thread is spawning before initialization or population of that vector. (i.e. a synchronization issue maybe?)