
Untitled
By: a guest on
May 27th, 2012 | syntax:
None | size: 0.55 KB | hits: 14 | expires: Never
Why doesn't scope-resolution work here?
namespace foo
{
void bar(int) { }
struct baz
{
static void bar()
{
// error C2660: 'foo::baz::bar' : function does not take 1 arguments
bar(5);
}
};
}
static void bar()
{
using foo::bar;
bar(5);
}
namespace foo
{
void bar(int) { }
struct baz
{
static void bar()
{
// error C2660: 'foo::baz::bar' : function does not take 1 arguments
foo::bar(5); // <-- changed
}
};
}