Michael Gerz <[EMAIL PROTECTED]> writes:
> > Since when is it allowed to compare an object with an enum???
> I found it out by myself: The enum is a constructor argument, i.e., it
> is converted into an object. Very ugly.
Sounds like you should add the explicit keyword to the constructor...
Ang
Michael Gerz wrote:
Hi folks,
could somebody please tell me why this piece of code compiles:
bool const show_change = par.lookupChange(cur.pos()) !=
Change::UNCHANGED;
as we have this
class Change {
public:
/// the type of change
enum Type {
UNCHA
Hi folks,
could somebody please tell me why this piece of code compiles:
bool const show_change = par.lookupChange(cur.pos()) !=
Change::UNCHANGED;
as we have this
class Change {
public:
/// the type of change
enum Type {
UNCHANGED, // no change