220 18256 <3050923.b2Rhyxlh9P@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Core Language feature: Multiple assignments
 from multiple return values via tuple
Date: Wed, 27 May 2015 10:44:45 -0700
Lines: 37
Approved: news@gmane.org
Message-ID: <3050923.b2Rhyxlh9P@tjmaciei-mobl4>
References: <69a59613-6504-466a-9878-786653d6087f@isocpp.org> <2351280.s4gqeZa1uH@tjmaciei-mobl4> <mk4s8r$avm$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1432748710 10322 80.91.229.3 (27 May 2015 17:45:10 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 27 May 2015 17:45:10 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBEMFTCVQKGQEWY5W5HY@isocpp.org Wed May 27 19:44:59 2015
Return-path: <std-proposals+bncBCB4TK757YBRBEMFTCVQKGQEWY5W5HY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRBEMFTCVQKGQEWY5W5HY@isocpp.org>)
	id 1YxfNq-0004Xv-NJ
	for gclcip-std-proposals@m.gmane.org; Wed, 27 May 2015 19:44:50 +0200
Original-Received: by wgla2 with SMTP id a2sf4572161wgl.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 27 May 2015 10:44:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version: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=kWf5m7voJGGfqHRojoJSMy5xC4p0jTcjoOE7j4Mc4YE=;
        b=FZjdboUamTB4I4ZV1SispLhQP9rjb/5fXRe+gI1aUeXLDEv+lzxz47qqs3jZh/a55w
         qhZaFCXOmiH9jnkYyEUAX1YKp+ybj8w3JGCz+7/uNx2li5fKHisWxvZ2mAIpZI+Cx+SF
         slztyxGFMHiYRHABGdVpuh8nnmplywBU/7upZaBGZmXOlt+79VM1J2HyVxsrhV6UQXdw
         PYi5hRZLi9SkKsQnWd0TgFqw0+wQ9ZIv6D699gFp7ebdoUyofHHBBfQ7tSktipa/Ev7s
         J9Oso4v6wFcw8EjKOG/WxTa7qoTNGmNEcGAWpHyqWMqvEj+yPFOY8XcmL+XzDD0QVf+d
         Z1fg==
X-Gm-Message-State: ALoCoQkDCbaEblX9tPSiDu6deQMYXu6PCzvGH1Y5O15PYkTToW1UWqf/P5wzG60hqW62czytLMQd
X-Received: by 10.112.28.111 with SMTP id a15mr33088110lbh.21.1432748690112;
        Wed, 27 May 2015 10:44:50 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.96.234 with SMTP id dv10ls943126wib.35.canary; Wed, 27 May
 2015 10:44:48 -0700 (PDT)
X-Received: by 10.180.77.8 with SMTP id o8mr8323079wiw.74.1432748688533;
        Wed, 27 May 2015 10:44:48 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id ew3si25105165wib.87.2015.05.27.10.44.48
        for <std-proposals@isocpp.org>;
        Wed, 27 May 2015 10:44:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl4.localnet (jfdmzpr03-ext.jf.intel.com [134.134.139.72])
	by gondolin.macieira.info (Postfix) with ESMTPSA id C5F4711A25D
	for <std-proposals@isocpp.org>; Wed, 27 May 2015 10:44:47 -0700 (PDT)
User-Agent: KMail/4.14.6 (Linux/4.0.3-1-desktop; KDE/4.14.6; x86_64; ; )
In-Reply-To: <mk4s8r$avm$1@ger.gmane.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mail=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:18256
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18256>

On Wednesday 27 May 2015 12:44:11 Matthew Woehlke wrote:
> > template <typename T> auto void do(T &&t)
> > {
> >       return SomeAction(), t();
> > }
> >
> > 
> >
> > [int, float] void f();
> >
> > 
> >
> > Does do<f> return [int, float]? Or does it return [SomeAction, [int,
> > float]]?
> The former; 'do' wasn't explicitly declared to have MRV. (This is even
> if we allow MRV without new syntax, which as stated, I'm not comfortable
> with, for the same reasons you're objecting to it.)

Ok, so

template <typename T> decltype(t()) do(T &&);

Is that an explicit MRV?
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
