Guillaume Pothier wrote:
I always say that a short solution is probably a good solution but it's a bit too short here ;-)Short it is indeed! The problem is not *that* complex... What do you think it lacks?
Dunno haven't see it, you forgot the attachment ;-)
Maybe another solution would be to add a method that returns the number of available buffers, and use getBuffer(int) in a for loop? But... it would be event shorter!
Lars begin() and end() solution seems sound. Abdel.
