title: How to resize vector of struct?
body: <p>I've tried to resize my vector of struct, but VS throws me an error</p>
  
  <pre><code>Error   C2512   1&gt;c:\program files (x86)\microsoft visual 
  studio\2017\enterprise\vc\tools\msvc\14.11.25503\include\xmemory0(856): 
  error C2512: 'tabuRecord::tabuRecord': no appropriate default constructor 
  available
  </code></pre>
  
  <p>Here is my struct:</p>
  
  <pre><code>struct tabuRecord {
    int x;
    int y;
    int k;
    tabuRecord(int x1, int y1, int k1) { x = x1; y = y1; k = k1; }
  };
  </code></pre>
  
  <p>Here is my resizing function:</p>
  
  <pre><code>void insertToTabu(vector&lt;tabuRecord&gt; &amp;v, int sizeOfTabuList) {
    v.resize(sizeOfTabuList);
  }
  </code></pre>