Argument Dependent Name (AKA Koenig) Lookup on Functions
The following sample works in Visual C++ .NET 2003 as specified in the standard:
// argument_dependent_name_AKA_koenig_lookup_on_functions.cpp
namespace A
{
struct X
{
};
void f(const X&)
{
}
}
int main()
{
A::X x;
f(x); // finds A::f because argument's type is in namespace ::A
}
For more information, see Argument Dependent (Koenig) Lookup Now Supported.