Andre Poenitz wrote: >> + if (lex) >> + vspace = VSpace(vsp); >> >> However, this isn't std::stream-like. > > Of course it is. > > 27.4.5.3 basic_ios iostate flags functions > [lib.iostate.flags] > > operator void*() const > > Returns: > If fail() then a null pointer; otherwise some non-null pointer > to indicate success.
Ok, thank you. > Btw, I forgot to implement bool operator!() const. So, now you need two operators to replace a single isOk()... But, I'm arguing for the sake of it and will stop. Your interface is much more user-friendly than the old one: thanks. -- Angus