title: how to typedef a vector of a custom class?
body: <p>I have class T defined and implemented with a default constructor, a copy constructor and an assignment operator overloaded</p>
  
  <p>I have tried to do the following</p>
  
  <pre><code>      #include &lt;vector&gt;
        //template &lt;class Board&gt;
        typedef std::vector&lt;Board&gt; t_bvector;
  </code></pre>
  
  <p>with and without the comment, I am getting this error</p>
  
  <pre><code>../Piece.H:143:1: error: ‘t_bvector’ does not name a type
  In file included from ../Board.C:1:0:
  ../Board.H:14:1: error: template declaration of ‘typedef’
  In file included from ../Board.C:1:0:
  </code></pre>
  
  <p>I dont have C++11, and want to retain basic vector methods like .insert, .size
  is there a way to solve it? or a better suggestion for an STL container ?</p>