
9 Mar
2005
9 Mar
'05
9:36 p.m.
Matthew Vogt wrote:
Jonathan Turkanis wrote:
if (c = boost::io::get(src)) { // c is not EOF or EAGAIN if (c == comment_char_)
if (c.value() == comment_char_)
{ in_comment_ = true; return this->get(src); } } return c; } }
I guess it looks okay with c.value(). What do you think?
Can the character class have operator==(char), or does this need to be a template?
To support both the implicit conversion to char and the safe bool conversion we'd need to implement many more operators than operator==, and I think there would still be problems with ambiguity. Jonathan