On Sun, May 26, 2002 at 08:53:02AM +0200, Lars Gullik Bjønnes wrote:

> inline
> void operator|=(LyXAlignment & la1, LyXAlignment la2) {
>       la1 = static_cast<LyXAlignment>(la1 | la2);
> }

If this is the best C++ can do, so be it ...

> >> |  if (blah & key_modifier::ctrl)
> 
> What errors do you get?

No conversion from class state to bool. Sorry for the paraphrase

> No, only some specific additional operators for these types.

"Worse is better" I suppose. This approach is sooo ugly.

Thanks for your help

john

-- 
"Time is a great teacher, but unfortunately it kills all its pupils."
        - Hector Louis Berlioz 

Reply via email to