Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-08-16 09:26:15


Author: bemandawes
Date: 2007-08-16 09:26:14 EDT (Thu, 16 Aug 2007)
New Revision: 38715
URL: http://svn.boost.org/trac/boost/changeset/38715

Log:
Get rid of pesky period in Windows message imp
Text files modified:
   branches/c++0x/boost/libs/system/src/error_code.cpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: branches/c++0x/boost/libs/system/src/error_code.cpp
==============================================================================
--- branches/c++0x/boost/libs/system/src/error_code.cpp (original)
+++ branches/c++0x/boost/libs/system/src/error_code.cpp 2007-08-16 09:26:14 EDT (Thu, 16 Aug 2007)
@@ -355,6 +355,8 @@
     while ( str.size()
       && (str[str.size()-1] == '\n' || str[str.size()-1] == '\r') )
         str.erase( str.size()-1 );
+ if ( str.size() && str[str.size()-1] == '.' )
+ { str.erase( str.size()-1 ); }
     return str;
   }
 # endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk