Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.