I have this following scenario
namespace A {
//...
class A {
public:
static void foo();
}
//...
} //namespace A
When I try to access foo() from another class with A::foo() the compiler complains about "foo is not a member of A" and when I try to use A::A::foo() it complains about unresolved external.
How can I solve this? I think making a class inside the the same namespace is pretty stupid and leads to confusion but I'm not the author of the code and changing the namespace or the class name would cause too much trouble