Hello,

I have a class with a vector as a static member:
Code:
class MyClass
{
     static std::vector<int> my_vector;
}
I then wish to initialize the vector in the .cpp file in global scope:
Code:
std::vector<int> my_vector = std::vector<int>(10);
my_vector[0] = 5;
But this gives me some errors. How can I initialize the values of my_vector? Thanks.