From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14855 invoked by alias); 9 Feb 2009 16:11:17 -0000 Received: (qmail 14789 invoked by uid 48); 9 Feb 2009 16:11:03 -0000 Date: Mon, 09 Feb 2009 16:11:00 -0000 Message-ID: <20090209161103.14788.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/39136] std::mem_fun_ref fails to accept a member function whose second argument with default value In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg00785.txt.bz2 ------- Comment #4 from paolo dot carlini at oracle dot com 2009-02-09 16:11 ------- (In reply to comment #3) > I'm looking at the current draft, n2798. > 23.2.6.2/10-11 [vector.capacity] > which lists both forms of resize(). > Yes, libstdc++ covers both by using the trailing default argument, but I > still can't pass it to mem_fun/mem_fun_ref. To be clear again: the current draft is not relevant here, because we are *not* implementing it. Concepts are needed, see PR 32618. Thus, since we are strictly following the standard as far as std::vector is concerned, I have troubles believing that the implementation of mem_fun_ref is at fault in any sense, that is really old code, and following rather directly from the specs. Either a C++ issue, or not a bug. Please double check. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39136