Fraser Ross
2008-07-29 17:14:46 UTC
namespace A {
void f(int){}
}
namespace B {
using namespace A;
void f(int i) {
f(i);
}
}
int main()
{
B::f(1);
return 0;
}
Does B::f hide A::f and therefore f(i) calls B::f? BCB2006 says its
ambiguous?
I discovered a bug which is reported as 18810. It is present with a
later build although the report says its fixed. It is produced with the
following:
namespace A {}
class B{
using namespace A;
};
Fraser.
void f(int){}
}
namespace B {
using namespace A;
void f(int i) {
f(i);
}
}
int main()
{
B::f(1);
return 0;
}
Does B::f hide A::f and therefore f(i) calls B::f? BCB2006 says its
ambiguous?
I discovered a bug which is reported as 18810. It is present with a
later build although the report says its fixed. It is produced with the
following:
namespace A {}
class B{
using namespace A;
};
Fraser.