operator int*() vs int* operator ()()

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;}
posted @ 2011-03-24 12:09  嗷嗷  阅读(857)  评论(3编辑  收藏  举报