title: typedef inside class
body: <p>Can`t I perform typedef inside the class?</p>
  
  <pre><code>#include &lt;vector&gt;
  using namespace std;
      class List {
      public:
             typedef int Data;
             class iterator;
             pair&lt;iterator,bool&gt; insert(const Data nodeId); //&lt;-error
      private:
      class Node {
          typedef vector&lt;NodeId&gt; DepList;//&lt;-error
      };
      }
  </code></pre>
  
  <p>I get an error <code>missing type specifier - int assumed. Note: C++ does not support default-int</code></p>