> i is not a const_iterator, just an iterator.

Maybe I'm still missing something, but I cannot observe the behaviour
that you report. When I compile

#include <vector>
struct A
{
};

int main()
{
  vector<A> x;
  vector<A>::iterator i= x.begin();
  A& a = *i;
}

with g++ 2.95.2, it compiles just fine.

Regards,
Martin

Reply via email to