title: Declaration with no type
body: <p>I am confused.</p>
  
  <p>I do this:</p>
  
  <pre><code>#include &lt;vector&gt;
  
  // List iteration
  typedef vector&lt;registeredObject&gt;::iterator iterator;
  typedef vector&lt;registeredObject&gt;::const_iterator const_iterator;
  vector&lt;registeredObject&gt;::iterator begin(void);
  vector&lt;registeredObject&gt;::const_iterator begin(void) const;
  vector&lt;registeredObject&gt;::iterator end(void);
  vector&lt;registeredObject&gt;::const_iterator end(void) const;
  </code></pre>
  
  <p>I get errors like: </p>
  
  <pre><code>.: error: ISO C++ forbids declaration of 'vector' with no type
  .: error: expected ';' before '&lt;' token
  </code></pre>
  
  <p>for each one of the above uses of vector. This code compiles in older CodeWarrior, but XCode complains. What is the issue? </p>
  
  <p>Is there a good reference?</p>
  
  <p>[EDIT] Here is the entire header <a href="http://www.sheldony.com/header.txt" rel="nofollow noreferrer">Here</a></p>