stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r579667 - /incubator/stdcxx/trunk/include/loc/_money_get.cc
Date Wed, 26 Sep 2007 14:27:43 GMT
Author: faridz
Date: Wed Sep 26 07:27:43 2007
New Revision: 579667

URL: http://svn.apache.org/viewvc?rev=579667&view=rev
Log:
2007-09-26  Farid Zaripov  <farid_zaripov@epam.com>

	* _money_get.cc (_C_get): If no characters available during
	parsing sign part of the pattern, then set failbit only when
	positive_sign and negative_sign both are not empty. Else set
	negative sign if positive_sign is not empty and negative_sign
	is empty.

Modified:
    incubator/stdcxx/trunk/include/loc/_money_get.cc

Modified: incubator/stdcxx/trunk/include/loc/_money_get.cc
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/loc/_money_get.cc?rev=579667&r1=579666&r2=579667&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/loc/_money_get.cc (original)
+++ incubator/stdcxx/trunk/include/loc/_money_get.cc Wed Sep 26 07:27:43 2007
@@ -165,7 +165,10 @@
         case /* '\3' */ money_base::sign: {
 
             if (__it == __end) {
-                __ebits |= _RW::__rw_failbit;
+                if (__ps.size () && __ns.size ())
+                    __ebits |= _RW::__rw_failbit;
+                else
+                    __sign = __ps.empty () - 1;
                 break;
             }
 



Mime
View raw message