Boost logo

Boost Users :

Subject: Re: [Boost-users] circular_buffer, debug and invalid iterator checking
From: Nigel Stewart (nigels.com_at_[hidden])
Date: 2010-11-08 14:58:41


>>> So I figured I'd store the data in a circular
>>> buffer, and push new data onto the front, and store my own
>>> iterator into it to use as the end.

Anthony,

Since the iterator is random access, perhaps they could be
converted to integers via operator - and converted back to
integers via operator + or operator +=.

- Nigel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net