V
vsgdp
I have a namespace with a collection of related functions. In the cpp file
for their implementations I have:
#include ...
using namespace n;
float f(){...}
void g(...)
{
f();
}
I get an error saying that 'f' is an ambiguous call to an overloaded
function...
If I change my cpp to the following, it works, :
#include ...
float n::f(){...}
void n::g(...)
{
f();
}
Why does the latter work and not the former? Also, in the latter
implementation of g, why don't I have to write
void n::g(...)
{
n::f();
}
Thanks.
for their implementations I have:
#include ...
using namespace n;
float f(){...}
void g(...)
{
f();
}
I get an error saying that 'f' is an ambiguous call to an overloaded
function...
If I change my cpp to the following, it works, :
#include ...
float n::f(){...}
void n::g(...)
{
f();
}
Why does the latter work and not the former? Also, in the latter
implementation of g, why don't I have to write
void n::g(...)
{
n::f();
}
Thanks.