hk_mp5kpw> Thanks!! That fixed it!
CornedBee> Thanks for the tip. I tried different syntax for the to_string method. The book I'm using suggests
flags.template to_string<char>()
however /usr/include/c++/3.2.2/bitset
gives the example of
flags.to_string<char,char_traits<char>,allocator<c har> >()
and neither of them work ("no matching function....."), so I went with the (char *). I'll keep muddling with the syntax though, thanks.