[Bug libstdc++/22634] partial_sum is too constrained

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 23 21:28:00 GMT 2005


------- Additional Comments From bangerth at dealii dot org  2005-07-23 21:15 -------
No, the standard says that the result for an iterator 'i' in the output  
range is  
  ((...(*first + *(first + 1)) + ...) + *(first + (i - result)))  
So arithmetic is done with the data type of the input range. That may be 
undesirable on occasion, but that's what the standard says. 
  
W.  

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22634



More information about the Gcc-bugs mailing list