From bac02200267495741e85db90607186ce4e0593b3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 29 Jun 2016 21:17:43 +0300 Subject: Port to MSVC --- tests/base64/driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/base64') diff --git a/tests/base64/driver.cxx b/tests/base64/driver.cxx index e43e04a..a65ddbb 100644 --- a/tests/base64/driver.cxx +++ b/tests/base64/driver.cxx @@ -23,6 +23,13 @@ encode (const string& i, const string& o) if (r) { is.seekg (0); + + // VC 19 seekg() doesn't clear eofbit. + // +#if defined(_MSC_VER) && _MSC_VER <= 1900 + is.clear (); +#endif + ostringstream os; base64_encode (os, is); r = os.str () == o && is.eof (); -- cgit v1.1