- #1
zeion
- 466
- 1
Hi, noob question here,
In C++, how can I return boolean comparison between two object pointers?
ie. return True if the pointers point to same object.
I've tried == but it doesn't work.
Do I need to define a comparison method from within the class?
If so what is the syntax for doing it?
Thanks.
In C++, how can I return boolean comparison between two object pointers?
ie. return True if the pointers point to same object.
I've tried == but it doesn't work.
Do I need to define a comparison method from within the class?
If so what is the syntax for doing it?
Thanks.