Static methods and functions in namespace distinguished

For static methods this works as long as the definition is in the same
file as the class declaration.