我在类中找到了这行代码,我必须修改它:
::Configuration * tmpCo = m_configurationDB;//pointer to current db
Run Code Online (Sandbox Code Playgroud)
而且我不知道究竟是什么意思是双重冒号前面的类名.没有它我会读:声明tmpCo作为指向类的对象的指针Configuration...但前面的双冒号混淆了我.
我还发现:
typedef ::config::set ConfigSet;
Run Code Online (Sandbox Code Playgroud) 我遇到了一段看起来像这样的代码:
::GetSystemDirectory(buffer, MAX_PATH);
Run Code Online (Sandbox Code Playgroud)
我从来没有见过一个空的函数调用::.我一直看到它们与命名空间一起使用.
有人可以解释一下我的::意思是什么?