title: Is it possible/advised to store a vector in a struct? C++
body: <p>I always have thought of a struct as a fixed sized object and while there doesn't seem to be any glaring compiler errors, I was wondering if doing this is generally in good practice. Would changing the struct to a class be more advisable or will a struct do just as well?</p>
  
  <p>The code, just because people get fussy:</p>
  
  <pre><code>struct Sprite
  {
      float x;
      float y;
      std::vector&lt;Sprite&gt; sprite;
  }
  </code></pre>
  
  <p>The essence of what I am doing is having children of a class as the same type as the parent. When the parent dies, the children do too.</p>