Having defined my own class iterator and class reverse_iterator for my own class, the HCB shows wrongly that my iterator is derived from std:vector:iterator.
Double clicking on the std:vector:iterator in the HCB brings me to the stdafx.h where VAX pre-defines some stuff.
For the reverse_iterator I get a bunch of references to STLports reverse_iterator, iterator_traits, iterator_traits:difference_type.
None of these are correct. To me this seems to be the same problem as my CEvent class which gets mixed up with the MFC CEvent class which I dont use or even reference in my projects. See Topic 1015
To repro use the following class:
class TestData {
public:
class iterator
{
public: iterator(); iterator operator++();
private: int m_data;
};
class reverse_iterator
{
public: reverse_iterator(); reverse_iterator operator++();
private: int m_data;
};
iterator begin() { return iterator(0); }
iterator end() { return iterator(99);}
};