Is it possible to allow a class to be converted to bool?
For example, if I have:
class foo {
private:
unsigned i;
};
and I want to evaluate:
if (foo)
by looking at foo.i, how can I do that?
Thanks
Joseph
For example, if I have:
class foo {
private:
unsigned i;
};
and I want to evaluate:
if (foo)
by looking at foo.i, how can I do that?
Thanks
Joseph
Comment