220 16783 <CAFk2RUZhK=400PRJ60T_5Jri8GixwpZLf55swr2qvrY1XDfzZQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.general,gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: [c++std-core-27199] Re: [std-proposals] Re:
 Re: An implementation of enhanced auto deduction and abbreviated template
 syntax using Clang
Date: Fri, 6 Mar 2015 01:52:39 +0200
Lines: 25
Approved: news@gmane.org
Message-ID: <CAFk2RUZhK=400PRJ60T_5Jri8GixwpZLf55swr2qvrY1XDfzZQ@mail.gmail.com>
References: <CABsSThrwV0UCbrmoxoeQUskOjvF2+RX5ctpSq3dPMPxm=t6mww@mail.gmail.com>
	<7c7d06ea-1e25-4720-9486-ec068b514ea6@isocpp.org>
	<CA+cyFgvMsbM0Tczjvy=dkJ1SpgtMNtjZtxzOxH8+N8QxuyzwEw@mail.gmail.com>
	<CAJcCCPPqBt1iO3g_unhVPATT6cemOikVWzDVmsEL9dFLnmRMCA@mail.gmail.com>
	<CA+cyFgt-JvWDJTwgUvS8qz-yXPshQKwntLjXPY=tBfNec8GkfQ@mail.gmail.com>
	<CAGg_6+NiuSQMO1RHNJJc=-jK-qC75+K+=GgCg8z35O_EUZJ3=Q@mail.gmail.com>
	<CA+cyFgvUX2wwGUF4rXgD7+ZB1uBG5A6rwTV0uAof9nAbAoNQXw@mail.gmail.com>
	<CAFk2RUb8FJjiwNQSwb-Rm0O4w942GTRqgUALB+p9L1bjtY+ccQ@mail.gmail.com>
	<322c42f4-8a77-4d25-8874-029666dc29d9@isocpp.org>
Reply-To: std-discussion@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1425599562 2865 80.91.229.3 (5 Mar 2015 23:52:42 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 5 Mar 2015 23:52:42 +0000 (UTC)
Cc: std-proposals@isocpp.org, Faisal Vali <faisalv@gmail.com>
To: "std-discussion@isocpp.org" <std-discussion@isocpp.org>
Original-X-From: std-discussion+bncBC5JHI7A7ALRBR6Y4OTQKGQEUQJVOWY@isocpp.org Fri Mar 06 00:52:41 2015
Return-path: <std-discussion+bncBC5JHI7A7ALRBR6Y4OTQKGQEUQJVOWY@isocpp.org>
Envelope-to: gclcig-std-discussion@m.gmane.org
Original-Received: from mail-pa0-f72.google.com ([209.85.220.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-discussion+bncBC5JHI7A7ALRBR6Y4OTQKGQEUQJVOWY@isocpp.org>)
	id 1YTfZI-00043s-QT
	for gclcig-std-discussion@m.gmane.org; Fri, 06 Mar 2015 00:52:41 +0100
Original-Received: by padet14 with SMTP id et14sf125346729pad.2
        for <gclcig-std-discussion@m.gmane.org>; Thu, 05 Mar 2015 15:52:39 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:cc:content-type:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=YruBm1ssogZxPqZl8n/JvU9fYJVuGMAp9bvTuPb96WM=;
        b=mmh3fn78obe49h4UbqWdwYycu79bSrtctXfPGXlBxNNTrKGayamYezx1m/8LwTQ48L
         B9XB/vO2vvGsRAbovUwIfqE8UqdKS9lJ8qeWx1d6I/Rq/02pOgMLmQnw2Hi4rpEtesXc
         kg0DjKZnW9fF61/E4yzhhBUxk1fMYrtcJ42MBV+QrkfZNW8+cB/GSqsUXMcEGyAG6QZN
         RmtCsurvdhz4jxHVcSAcPPqU0u0WeMl3X6VwsIsSe2sUOGe4aeelKZdW784SYkgPmYcF
         4mZCyw5Zx1HcSHceBf4F8eDUcerBEbMivlD0P010+/LWtcGoyJt+O0EoUb+NAwJxTTKL
         MwgA==
X-Gm-Message-State: ALoCoQndHEdSnRf7vKuq9Ga0crU2OBfbIL7NbGkWoQA6rPYiO8jNXrQiamQk8qkUup20OgiHhu/j
X-Received: by 10.67.15.103 with SMTP id fn7mr12609707pad.24.1425599559893;
        Thu, 05 Mar 2015 15:52:39 -0800 (PST)
X-BeenThere: std-discussion@isocpp.org
Original-Received: by 10.50.29.108 with SMTP id j12ls93245igh.35.gmail; Thu, 05 Mar
 2015 15:52:39 -0800 (PST)
X-Received: by 10.51.17.7 with SMTP id ga7mr8098411igd.42.1425599559495;
        Thu, 05 Mar 2015 15:52:39 -0800 (PST)
Original-Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com. [2607:f8b0:4001:c03::233])
        by mx.google.com with ESMTPS id h1si10194182igh.3.2015.03.05.15.52.39
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 05 Mar 2015 15:52:39 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c03::233 as permitted sender) client-ip=2607:f8b0:4001:c03::233;
Original-Received: by iecvy18 with SMTP id vy18so17261951iec.9;
        Thu, 05 Mar 2015 15:52:39 -0800 (PST)
X-Received: by 10.107.26.80 with SMTP id a77mr23985474ioa.78.1425599559343;
 Thu, 05 Mar 2015 15:52:39 -0800 (PST)
Original-Received: by 10.36.86.209 with HTTP; Thu, 5 Mar 2015 15:52:39 -0800 (PST)
In-Reply-To: <322c42f4-8a77-4d25-8874-029666dc29d9@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:4001:c03::233 as
 permitted sender) smtp.mail=ville.voutilainen@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-discussion@isocpp.org; contact std-discussion+owners@isocpp.org
List-ID: <std-discussion.isocpp.org>
X-Google-Group-Id: 495566654649
List-Post: <http://groups.google.com/a/isocpp.org/group/std-discussion/post>, <mailto:std-discussion@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-discussion+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-discussion/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-discussion/subscribe>,
 <mailto:std-discussion+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+495566654649+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-discussion/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.general:4989 gmane.comp.lang.c++.isocpp.proposals:16783
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.general/4989>

On 6 March 2015 at 01:43, Matthew Fioravante <fmatthew5876@gmail.com> wrote:
>> void frob(auto t)
>> {
>>     // if I want to use 'T' here, I need to do a decltype(t) to get at it
>> }
> You may need remove pointer, ref, and/or cv qualifiers if you use auto*,
> auto&& (perfect forwarding), const auto&, etc.. using type_traits. If the
> signature changes, you'll have to remember to fix the traits you used.

Yes. Not that the "signature changes" is all that much different from an
old-skool template.

> If your implementation needs to express type T, it might be better to use
> the old template syntax.

Perhaps so. That may be a fairly big "if".

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-discussion+unsubscribe@isocpp.org.
To post to this group, send email to std-discussion@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-discussion/.

.
