title: Iterator for vector of pointers not dereferencing correctly
body: <p>Here is my issue:</p>
  
  <p>I have a <code>std::vector&lt;AguiWidgetBase*&gt;</code> which is used to keep track of child controls.</p>
  
  <p>I have these two functions to return iterators:</p>
  
  <pre><code>std::vector&lt;AguiWidgetBase*&gt;::const_iterator AguiWidgetBase::getChildBeginIterator() const
  {
      return children.begin();
  }
  
  std::vector&lt;AguiWidgetBase*&gt;::const_iterator AguiWidgetBase::getChildEndIterator() const
  {
      return children.end();
  }
  </code></pre>
  
  <p>I  then use it like this:</p>
  
  <pre><code>for(std::vector&lt;AguiWidgetBase*&gt;::const_iterator it = box-&gt;getChildBeginIterator(); 
      it != box-&gt;getChildEndIterator(); ++it)
  {
      it-&gt;setText("Hello World");
  }
  </code></pre>
  
  <p>and I get these errors:</p>
  
  <pre><code>Error   3   error C2039: 'setText' : is not a member of 'std::_Vector_const_iterator&lt;_Ty,_Alloc&gt;'   c:\users\josh\documents\visual studio 2008\projects\agui\alleg_5\main.cpp   112
  Error   2   error C2839: invalid return type 'AguiWidgetBase *const *' for overloaded 'operator -&gt;' c:\users\josh\documents\visual studio 2008\projects\agui\alleg_5\main.cpp   112
  </code></pre>
  
  <p>Why is it giving me these errors?</p>
  
  <p>Thanks</p>