blob: e5500cbea8b3c6a0c4ce583531a715e5d8342f23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// To find function pointers in Koenig lookup is ok as long as we only find one.
namespace A{
void foo(); // ERROR -
struct X{};
void (*bar)(X*)=0;
}
using A::X;
void (*foo)(X*)=0; // ERROR -
void g()
{
foo(new X); // ERROR - both objects and functions found
bar(new X); // ok
}
|