N
Nan Li
Hello,
I got stuck in a situation I think many of you must have already
experienced. I want to have a simple lookup map inside my class. All
the instances share that map. The code is as follows.
class A
{
private:
static std::map<int,std::string> someMap;
public:
......
};
But I don't know how I can initialize this map properly.
Thanks,
Nan
I got stuck in a situation I think many of you must have already
experienced. I want to have a simple lookup map inside my class. All
the instances share that map. The code is as follows.
class A
{
private:
static std::map<int,std::string> someMap;
public:
......
};
But I don't know how I can initialize this map properly.
Thanks,
Nan