From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16387 invoked by alias); 25 Jul 2005 09:03:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16372 invoked by uid 48); 25 Jul 2005 09:03:22 -0000 Date: Mon, 25 Jul 2005 09:51:00 -0000 Message-ID: <20050725090322.16371.qmail@sourceware.org> From: "chris at bubblescope dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050723200746.22634.squell@alumina.nl> References: <20050723200746.22634.squell@alumina.nl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/22634] partial_sum is too constrained X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg03179.txt.bz2 List-Id: ------- Additional Comments From chris at bubblescope dot net 2005-07-25 09:03 ------- I'm not personally 100% sure that this should be "fixed", I've used partial_sum where I've assumed this behaviour, and adding the things in the "output type" would have broken... I've attached the work-around I personally use to this kind of problem, which is wrapping the iterator in another iterator which changes the value_type. Feel free to use this code if you like. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22634