error in locked 'vector' file
<p>I'm getting an error occurring in the 'vector' class, as in, the class which you access when you #include &lt; vector ></p>

<p>the error I get mostly is:</p>

<p>Error   1   error C2259: 'Gun' : cannot instantiate abstract class</p>

<p>This class, Gun, is indeed abstract, but I have checked the code and in no place is there an instance of this trying to be created. What there is, is a few definitions of </p>

<p>vector&lt; Gun > blah;</p>

<p>as class instance members which will be populated by derived classes so that I may use their polymorphic functions.</p>

<p>Although I cannot access the vector class to change it (and even if I could I wouldn't want to) I can see what part of it's code the error is occurring on:</p>

<p>the first line of this block:</p>

<pre><code>void resize(size_type _Newsize, _Ty _Val)
    {   // determine new length, padding with _Val elements as needed
    if (size() &lt; _Newsize)
        _Insert_n(end(), _Newsize - size(), _Val);
    else if (_Newsize &lt; size())
        erase(begin() + _Newsize, end());
    }
</code></pre>
