From 110a23d2f06565204e509b60b0bc28d5ef61a2ae Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 15 Feb 2006 20:46:07 +0000 Subject: Added in.clear() before resetting I/Os streams. Again, thanks to the list. --- textual.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index 37373baa..9fb383ca 100644 --- a/textual.cc +++ b/textual.cc @@ -457,6 +457,7 @@ bool textual_parser_t::test(std::istream& in) const #endif } + in.clear(); in.seekg(0, std::ios::beg); assert(in.good()); return true; -- cgit v1.2.3