プライベート メンバーが静的マップであるクラスがあります。
Class Devices
{
...
private:
struct DevicePair
{
int nCtr;
bool isToAdd;
};
DevicePair m_DevPair;
static map <string, DevicePair> m_SYSdeviceMap;
};
cppファイルでこれを行うことができないのはなぜですか?
map <string, DevicePair> Devices::m_SYSdeviceMap;
cpp ファイルでこれを初期化するにはどうすればよいですか?