Possible Duplicate:
Overloading unary operator &
class A
{
public:
A* operator&()
{
return NULL;
}
};
int main()
{
A obj;
A* ptr=&obj;//ptr=NULL
//determining obj's address here
}
It is possible to determine address of object of such class?