title: Passing a variable number of arguments to constructors
body: <p>I want to accomplish the following:</p>
  
  <pre><code>Entity e;
  e.AddComponent&lt;CPosition&gt;(128, 128); //method should instantiate a new CPosition(128,128)
  e.AddComponent&lt;CSprite&gt;(some, other, args); //etc
  </code></pre>
  
  <p>The important part is the AddComponent method. It should attempt to construct the generic type with the arguments passed. I believe C++11's variadic templates to forward the arguments to the constructor. However, I do not have access to this functionality yet (VS2010).</p>
  
  <p>Does anyone have any idea on how to do this?</p>