Re: C++ help wanted

2006-05-09 Thread Angus Leeming
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

Re: C++ help wanted

2006-05-09 Thread Michael Gerz
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

C++ help wanted

2006-05-09 Thread Michael Gerz
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