From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20102 invoked by alias); 31 Oct 2011 19:45:57 -0000 Received: (qmail 20090 invoked by uid 22791); 31 Oct 2011 19:45:56 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Oct 2011 19:45:41 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9VJjevV022023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 31 Oct 2011 15:45:41 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9VJjeNv001884; Mon, 31 Oct 2011 15:45:40 -0400 Received: from [0.0.0.0] (ovpn-113-26.phx2.redhat.com [10.3.113.26]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p9VJjc4k013465; Mon, 31 Oct 2011 15:45:38 -0400 Message-ID: <4EAEFAE1.7080409@redhat.com> Date: Mon, 31 Oct 2011 20:20:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1 MIME-Version: 1.0 To: 3dw4rd@verizon.net CC: gcc-patches@gcc.gnu.org Subject: Re: [C++-11] User defined literals References: <1988108989.8568759.1320079443745.JavaMail.root@vznit170070> In-Reply-To: <1988108989.8568759.1320079443745.JavaMail.root@vznit170070> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg02877.txt.bz2 On 10/31/2011 12:44 PM, 3dw4rd@verizon.net wrote: >> For string and character literals, we can still just build up a call; we >> only need to walk the overload list here for numeric literals. > > I found that if you don't walk the overload list for chars, a char could be routed to the operator taking wchar_t for example. Ah, yes, I was overlooking the bit in the standard that says "S shall contain a literal operator (13.5.8) whose only parameter has the type ch". The paragraph for string literals doesn't have a similar restriction. Jason