Say I have a file file1.h:
namespace a
{
int Func()
{
return 5;
}
}
and a file file2.h
#include "file1.h"
namespace a
{
class Foo
{
Foo();
};
}
and file2.cpp:
#include "file2.h"
a::Foo::Foo()
{
Func();//<----
}
Can Func() be referenced like this, or do we need to do a::Func()?