On Thu, Mar 22, 2001 at 01:05:16PM +0100, Lars Gullik Bjønnes wrote:
> Dekel Tsur <[EMAIL PROTECTED]> writes:
> 
> | g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I../boost    -isystem
> | /usr/X11R6/include  -O -fno-rtti -fno-exceptions -W -Wall -c buffer.C
> | buffer.C:21: bitset: No such file or directory
> | make[2]: *** [buffer.o] Error 1
> 
> And I don't see whay a bitset should be used...
> 
> enum PAR_TAG {
>         NONE = 0
>         TT = 1,
>       SF = 2,
>       BF = 4,
>       IT = 8,
>       SL = 16,
>       EM = 32
> };

  Notice that the code with bitsets is more clear than this version.
  Notice the following line:
  char const * tag_name[] = {"tt","sf","bf","it","sl","em"};
  
  If I do it like that I need a map to relate the names to the numbers.
  
  That was the reason that lead me to use the bitset.
  
  If that is not generally available then that is another problem, but there
was a reason to use the bitsets. It wasn't a mood to get fancier code. ;-)

> 
> -- 
>       Lgb

-- 
José

Reply via email to