Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1223: stuff from stdafx.h shows up wrongly
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Apr 02 2004 :  2:48:56 PM  Show Profile
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);}
};
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000