Boost logo

Boost :

From: Alexey Bakhvalov (bakhvalov_at_[hidden])
Date: 2005-06-13 17:58:18


Btw, I get similar error if I try to subtract iterator from const_iterator
(or vice versa).
Example:

typedef boost::ptr_vector<char> TContainer;
TContainer some_vector;
TContainer::const_iterator it1 = some_vector.begin();
TContainer::iterator it2 = some_vector.begin();
size_t diff = it1 - it2;

It seems that there is a problem with all binary operators that take
iterators as operands.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk