Thursday 28 May 2009

Stuck in a rut

Don't get stuck in a rut! Don't miss the wood for the trees!

The other day, I was working out some long, convoluted workaround for dealing with the fact that vector iterators can become invalid if the vector resizes.

Then someone reminded me that you can access elements of a vector by index. D'oh!

1 comment:

Ste said...

n00b! :) at least you didn't do a dobbsy and iterate by poping and pushing every element of the vector. :(