[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 862ae70 3/4: Remove some workarounds for an o
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 862ae70 3/4: Remove some workarounds for an obsolete compiler |
Date: |
Wed, 16 Jan 2019 15:24:18 -0500 (EST) |
branch: master
commit 862ae70c61585f6f2ecf90c582c26f0e108375fb
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Remove some workarounds for an obsolete compiler
Often such workarounds are retained for possible future use, as defects
observed in one compiler sometimes arise in another. In the present
case, however, it seems most unlikely that another compiler would
exhibit any similar error in std::ios_base::eof().
---
stream_cast.hpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/stream_cast.hpp b/stream_cast.hpp
index 1054e07..c9ed781 100644
--- a/stream_cast.hpp
+++ b/stream_cast.hpp
@@ -117,8 +117,6 @@ To stream_cast(From from, To = To())
{
err << "Output failed ";
}
-#if !defined LMI_COMO_WITH_MINGW
- // COMPILER !! This appears to be a defect in libcomo.
else if(!(interpreter >> std::ws))
{
err << "Trailing whitespace remains ";
@@ -127,18 +125,12 @@ To stream_cast(From from, To = To())
{
err << "Unconverted data remains ";
}
-#endif // !defined LMI_COMO_WITH_MINGW
else
{
; // Nothing left to do.
}
-#if !defined LMI_COMO_WITH_MINGW
if(!interpreter || !interpreter.eof())
-#else // defined LMI_COMO_WITH_MINGW
- // COMPILER !! This appears to be a defect in libcomo.
- if(!interpreter)
-#endif // defined LMI_COMO_WITH_MINGW
{
err
<< "converting '"