Sure nothing is stopping you from doing this.

But you probably wouldn't want to do this kind of overloading as you are giving a new meaning to the == operator on pointers. Many a times the users of your code would not think that you are comparing the values.