Possible Duplicate:
What s the purpose of a leading “::” in a C++ method call
这一试样有实例代码。
::testing::AssertionResult IsEven(int n) {
if ((n % 2) == 0)
return ::testing::AssertionSuccess();
else
return ::testing::AssertionFailure() << n << " is odd";
}
如何工作? 如果名称空间正在测试,那么它是否检验了:AssertionResult 是正确的使用?