diff options
Diffstat (limited to 'tests/base64')
-rw-r--r-- | tests/base64/driver.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 (); |