On Thu, Mar 22, 2001 at 01:05:16PM +0100, Lars Gullik Bjønnes wrote:
> 
> enum PAR_TAG {
>         NONE = 0
>         TT = 1,
>       SF = 2,
>       BF = 4,
>       IT = 8,
>       SL = 16,
>       EM = 32
> };
> 
> 
> And instead of bitset<LAST> tag_close;
> 
> PAR_TAG tag_close = 0;
> 
> Instead of the tag_close.set(...)
> 
> tag_close |= ...;

  I have changed the code as above, changed tag_state to stack<PAR_TAG>,
  tag_open to list <PAR_TAG> and tag_close to PAR_TAG.
  
  The Problem is that every time I do:
  
  PAR_TAG tag_close = NONE;
  tag_close |= TT; //one example
  
  I get an error from the compiler:
  buffer.C:2952: cannot convert int' to PAR_TAG' in assignment
  
  Any help is appreciated.

> tag_close.any() -> tag_close
> 
> tag_close.reset(...) -> ???
> 
> tag_close[...] -> tag_close & ...

> -- 
>       Lgb

-- 
José

Reply via email to