|
|
|
| |||||
|
|
| ||||||
|
|
|||||||
|
|
home translate to German (by SYSTRAN)
|
|
|
Two Phase Name Lookup
int f()
{
return 0;
}
int f(long l)
{
return 0;
}
template<class T>
struct A
{
int f()
{
return 1;
}
};
template<class T>
struct B
: A<T>
{
int g()
{
return f();
}
};
template<class T>
struct C
{
int g()
{
return f(0);
}
};
int f(int i)
{
return 1;
}
int main()
{
B<int> b;
C<int> c;
return b.g() + c.g();
}
| |||
This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.
|
Revision: 1.1, http://cmeerw.org/prog/freecpp/two_phase_lookup.html Last modified: Sat Aug 06 15:59:06 2005 |
Christof Meerwald <cmeerw@cmeerw.org> XMPP: cmeerw@cmeerw.org |