Original Post
Hi,
I am trying to overload operators in a class of mine. I have overloaded the ! operator, but say i were to say:
template
class foo
{
...
private:
T* obj;
};
foo yum;
if (yum)
{...}
Is there a way i can overload the ''if (object)'' operator (is that even an operator?) so that it checks the T* obj for validity? I hope you understand my question. If you don''t, could you please point me to a great resource on operator overloading?
Slaru