You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/03/03 22:22:56 UTC

svn commit: r382932 - /incubator/stdcxx/trunk/include/fstream.cc

Author: sebor
Date: Fri Mar  3 13:22:53 2006
New Revision: 382932

URL: http://svn.apache.org/viewcvs?rev=382932&view=rev
Log:
2006-03-03  Martin Sebor  <se...@roguewave.com>

	STDCXX-160
	* fstream.cc: Avoided using operator+ on pos_type (which need
	not be defined) and used the required operator+= instead.

Modified:
    incubator/stdcxx/trunk/include/fstream.cc

Modified: incubator/stdcxx/trunk/include/fstream.cc
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/fstream.cc?rev=382932&r1=382931&r2=382932&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/fstream.cc (original)
+++ incubator/stdcxx/trunk/include/fstream.cc Fri Mar  3 13:22:53 2006
@@ -761,7 +761,8 @@
                 __base = __from_next;
             }
 
-            _C_cur_pos = _C_beg_pos + __ext_chars;
+            _C_cur_pos  = _C_beg_pos;
+            _C_cur_pos += __ext_chars;
             _C_cur_pos.state (__state);
         }