Re: AutoPtr::operator == : Is it defined the correct way ??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Let's think further. If comparison is meaningless, why would anyone bother
using this operator? I'm using CAutoPtr quite frequently in a big project
but cannot remember ever needing it. On the other hand, I always think of
CAutoPtr variables as pointers, and this operator doing a value equality
check would bend my mind a bit. It could be that operator == was only
defined for completness. When I design a new class I also tend to add a few
common functions which are never going to be used.


.