Code:
vector<static int> var2
still can be complied by VC2005pro. But, it works just like the code without 'static' identifier.

Thanks for your answers.