class AA{
public:
operator int*() {return NULL;}
int* operator ()() { return NULL;}
int* operator ()(int k) {return NULL;} };
int main(){ AA a;
int *p;
p = a;
p = a();
p = a(2);
return 0;}
转载于:https://www.cnblogs.com/aoaoblogs/archive/2011/03/24/1993630.html