From patchwork Mon Sep 13 16:31:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 64612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8CFC1B6F10 for ; Tue, 14 Sep 2010 02:31:58 +1000 (EST) Received: (qmail 8984 invoked by alias); 13 Sep 2010 16:31:52 -0000 Received: (qmail 8967 invoked by uid 22791); 13 Sep 2010 16:31:51 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from vsmtp21.tin.it (HELO vsmtp21.tin.it) (212.216.176.109) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Sep 2010 16:31:45 +0000 Received: from [192.168.0.4] (79.33.220.133) by vsmtp21.tin.it (8.5.113) id 4BC86A490AC95672; Mon, 13 Sep 2010 18:31:42 +0200 Message-ID: <4C8E51EE.2000304@oracle.com> Date: Mon, 13 Sep 2010 18:31:42 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/3.0.6 Thunderbird/3.0.6 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: libstdc++ Subject: [v3] Implement LWG 1340 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, tested x86_64-linux, committed. Paolo. //////////////////////// 2010-09-13 Paolo Carlini * include/bits/forward_list.h (forward_list<>::resize(size_type, value_type)): Fix signature, per LWG 1340. * include/bits/forward_list.tcc: Adjust definition. Index: include/bits/forward_list.h =================================================================== --- include/bits/forward_list.h (revision 164216) +++ include/bits/forward_list.h (working copy) @@ -1002,7 +1002,7 @@ * populated with given data. */ void - resize(size_type __sz, value_type __val); + resize(size_type __sz, const value_type& __val); /** * @brief Erases all the elements. Index: include/bits/forward_list.tcc =================================================================== --- include/bits/forward_list.tcc (revision 164216) +++ include/bits/forward_list.tcc (working copy) @@ -201,7 +201,7 @@ template void forward_list<_Tp, _Alloc>:: - resize(size_type __sz, value_type __val) + resize(size_type __sz, const value_type& __val) { iterator __k = before_begin();