News for hackers. Stuff that matters.
Re:Why C++ is vastly superior to C by X-Istence on Saturday May 14, 2011 @01:09PM (#2548061)
c and d are considered equal, you have overridden the boolean operators, what the code is actually calling on your if statement is:

c.bool() == d.bool()

In this case both will return true since they are non-zero, and thus the statement would be

1 == 1

Which is true; the compiler did exactly as you told it to do.

There are no comments on this comment yet.