220 35836 <CADbh+eTfRrCVvisr2=OGCBX5=PATnzv_0gMCFax-_LBf+wUhuQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Brittany Friedman <fourthgeek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Output parameters
Date: Sat, 9 Dec 2017 19:11:08 -0600
Lines: 45
Approved: news@gmane.org
Message-ID: <CADbh+eTfRrCVvisr2=OGCBX5=PATnzv_0gMCFax-_LBf+wUhuQ@mail.gmail.com>
References: <1c1bb50b-2d59-4247-a158-158065fb1a9a@isocpp.org>
 <0c471d5c-b9b2-40f9-a2bf-908edbb1f272@isocpp.org> <17e3b13c-eb1b-fc2c-590e-3d394f164f9a@wanadoo.fr>
 <d750d914-94c4-4f17-b20d-bc8ca51f58ea@isocpp.org> <1c8e3ec4-6c5f-43db-bb6e-131d725f7ba4@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="94eb2c1244c2c851ed055ff2175a"
X-Trace: blaine.gmane.org 1512868268 16245 195.159.176.226 (10 Dec 2017 01:11:08 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 10 Dec 2017 01:11:08 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCHLPXGUXMJBBLMTWLIQKGQEXTIDCLY@isocpp.org Sun Dec 10 02:11:04 2017
Return-path: <std-proposals+bncBCHLPXGUXMJBBLMTWLIQKGQEXTIDCLY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt0-f199.google.com ([209.85.216.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCHLPXGUXMJBBLMTWLIQKGQEXTIDCLY@isocpp.org>)
	id 1eNq92-00045e-47
	for gclcip-std-proposals@m.gmane.org; Sun, 10 Dec 2017 02:11:04 +0100
Original-Received: by mail-qt0-f199.google.com with SMTP id v30sf16302926qtg.9
        for <gclcip-std-proposals@m.gmane.org>; Sat, 09 Dec 2017 17:11:11 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1512868271; cv=pass;
        d=google.com; s=arc-20160816;
        b=Epadd7ZhW6cJiRhMExT8YtST8RalQI0OosMb/aGcdv5aWOYyqY1rEBt9KHjOb1LleX
         ujaZuSo1Lo4YLod4zyw5j4P4P2JJte2V1T/VzGl3/YqDW2WbIm7yixoxkoQO12OSZA2j
         UO207Op3xc4PjtU4YS0cGbrDN4fiHVezSG1yUI0vI+qMdVLVP2hfzaZiGf1KUVtYOwqp
         7AMjigG6JdCbTkK9ZAk3FZNs65PtRpXR4zeOjtl91V3YvvAMIUdRNDKvmatZRQPGVpWs
         7aUvHw02pujlEudG7cV7F7PoruLac7dsMiFm2c/LxYBlmNrQSuUjRjYYiWahFRjBB6L/
         N8Lg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:references:in-reply-to:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=D4vFo//4pKTvPCHiL8aKOL8f72uDnwgMF8Dsj08uhaA=;
        b=vXmgIlXu90dbnWKHQV6wXyzBCvzrHi83Nuk3wauCCVgoYGHMFFiF/Rq/tpRZULUmR6
         xzN7hLxgSol0Pqf/LU17D1hwqVl+jZPLWTQg2IG0swcLE/1jnGCtUTMorjyTXU2olMt3
         oN+p+UinjOqt+Y6uNVbJf7CG9g+oK+UD6PETXpVr2kAiFo/di7692OrYb62i3ZJpHREr
         mllDqtSsx2I5UAIt7Z0Bc/stz0BDmg/0cvmtX2jSJaSkcxZXKVlBWHt5NzS+TcVLNeLf
         gz/LVHwfw5cldsOW0vpTaYvi/KmINF0srlGIOevSg2sr1F7OAAB1OVPgyfvpZEOPX58a
         NK1w==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y4woRiH/;
       spf=pass (google.com: domain of fourthgeek@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=fourthgeek@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :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=D4vFo//4pKTvPCHiL8aKOL8f72uDnwgMF8Dsj08uhaA=;
        b=SwDWMZdX/THsvacJnSQYI46RJIAlIgO/1djcALZFak4qUl23EoSA7zPeHx1tOuGZ23
         SJbChe8wAR/qbNhnhUA5EAJnUjNoBLTj0kFyggmSb/tsCM2oxndChv+oI1+EKKzIv5nA
         YTR1eQdVlLk9XO3HSLk4WvTgJYJhnUca8Yl2/wVuQ6fxyfrYZqYxMAQThTZ5KaQC9Fuy
         vHpBrNn2tEPQ0rdci9L5UgyWiqCScPbz0eG0Tuy913qcwlp9u9IPg/S7+lEIanlnyNxT
         jAPj/fWQt1TJfpxBIrcek7b+Z+hksk+5FI82+sKqPgpnb3/+h5dGZxRIyWB5ZS9IGmrl
         7qKg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=D4vFo//4pKTvPCHiL8aKOL8f72uDnwgMF8Dsj08uhaA=;
        b=dneckoJLxbH+F6no6nGfZTr3SFrorj9eO7EWOTP2xMLW8gmtX3WzfVw25cG1sZAwUn
         mrjJJNutaGJeCsxbP3EFQjzFQOPcrTPUzaK37RxsqtHlFHs2ZH0d57m2VX0HTcdF27KV
         o6ufjt+4GoD4GxtERnvcFFf+79Y8+k6XPhuBw8fou+7M26lQAZv8PnCfPOkhbmb3E46c
         nmkv40+mB2cqjcC+RWVcU71yqZuh3h9E0xQih26NgXWBhioz9wqAubL7qe4pmO7e8TZP
         ghnXon348IZOEeQrPRF6aNrt6jP70EUPBxnnWwu+kEQ4rGJ1QCmacwRGiD63nqcHfQxg
         4Zqw==
X-Gm-Message-State: AKGB3mLWKBmK2lPohMfFvscMF+uKCWR0hjeTLUOU6viTaGzaG+ywgmFB
	PFkDtaLnzD3+stHFR/gqnk7HoQ==
X-Google-Smtp-Source: AGs4zMZW8q3/6u3BIKrfWj1mnrm5JmKxWCMwvYq+R500xSm2w1Fd6YUbfofCpAaUSNEo8Je/IRKbyQ==
X-Received: by 10.55.144.4 with SMTP id s4mr24895371qkd.45.1512868270949;
        Sat, 09 Dec 2017 17:11:10 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.55.75.6 with SMTP id y6ls2415006qka.14.gmail; Sat, 09 Dec 2017
 17:11:09 -0800 (PST)
X-Received: by 10.237.53.2 with SMTP id a2mr21028340qte.5.1512868269693;
        Sat, 09 Dec 2017 17:11:09 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1512868269; cv=none;
        d=google.com; s=arc-20160816;
        b=DEAxxdwZByWGK0LRpV6V6y3SThb6Mg9na1uaUtRxmmOztg/Kj+1k3A2Hsuc44yLTQ3
         8ViStX/TH3PMoz37QMhkE1+/0EGF8L6V9WqvIs9m1ijmwBjVGjiufTJwJ5jYVtkIKWtI
         jJa/l/7M/Vxvc1bYsMzCM3CHCTjKh+gjpyZsJdQEjlnBeNY+9an3U8jaxQIsL8RRY+lh
         lgCdptQfh6bnX1CC3ymfwetP/Q4/a3ESmp3hmUVpjX0LZ0VQszSPKsgPy620O91FhKqT
         mf0b/KZWcSqBATCOkxp9qPKvbOMb2x6ZmUjdDmrACr0yxpgN4GHRbzSTkT6iF3S2VnrG
         9VRg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:references:in-reply-to:mime-version
         :dkim-signature:arc-authentication-results;
        bh=1NqDXQQg07Hg2UKNKXeubik5p5iIX/Df8oKdBYCTNc0=;
        b=q+zBvG4ES6rl+dCxFqe2mmFI0wdelv6aJm5UoBQcG7gLOWdBE94Po4jIxWGqBUle2t
         8WGFUj8WVTyQtRNjMydTKvOD/0qwt3RBxjx4+ZRBxTmd5dBVVu2KKASX8oqobVApk37y
         +0DVFPdjxRrEWO3+0m4wQPNIwBr6H3T949IhigxH+0uWSIzPHqEpFzpMTMiOwtzpgQ4K
         pTmL5Ni1FVBX0QBcGnr9S0y12w5M2R8hIRLDvRLAl+jhGF1D9m35IC6/7Prjykhf8AJi
         zp/YecFXPkOB0VUXxrQejE8ypbfDUtO1h6rMNLasSQAbTP6AdEArE2fnIv+b8dyO/Cvr
         XEcQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y4woRiH/;
       spf=pass (google.com: domain of fourthgeek@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=fourthgeek@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id b37sor7868955qtk.40.2017.12.09.17.11.09
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Sat, 09 Dec 2017 17:11:09 -0800 (PST)
Received-SPF: pass (google.com: domain of fourthgeek@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.200.25.207 with SMTP id s15mr21570405qtk.94.1512868269280;
 Sat, 09 Dec 2017 17:11:09 -0800 (PST)
Original-Received: by 10.140.20.234 with HTTP; Sat, 9 Dec 2017 17:11:08 -0800 (PST)
In-Reply-To: <1c8e3ec4-6c5f-43db-bb6e-131d725f7ba4@isocpp.org>
X-Original-Sender: fourthgeek@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=Y4woRiH/;       spf=pass
 (google.com: domain of fourthgeek@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=fourthgeek@gmail.com;       dmarc=pass
 (p=NONE sp=NONE dis=NONE) header.from=gmail.com
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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:35836
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35836>

--94eb2c1244c2c851ed055ff2175a
Content-Type: text/plain; charset="UTF-8"

I agree that #2 is the right solution. One change that might make #2 more
palatable would be to allow structs to be declared as part of a function's
return type. MSVC seems to accept this code but I don't think it is
conforming.

struct { int mean; int median; int mode; } calc_averages(vector<int>);

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CADbh%2BeTfRrCVvisr2%3DOGCBX5%3DPATnzv_0gMCFax-_LBf%2BwUhuQ%40mail.gmail.com.

--94eb2c1244c2c851ed055ff2175a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I agree that #2 is the right solution. One change that mig=
ht make #2 more palatable would be to allow structs to be declared as part =
of a function&#39;s return type. MSVC seems to accept this code but I don&#=
39;t think it is conforming.<div><br></div><div>struct { int mean; int medi=
an; int mode; } calc_averages(vector&lt;int&gt;);</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CADbh%2BeTfRrCVvisr2%3DOGCBX5%3DPATnz=
v_0gMCFax-_LBf%2BwUhuQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfoo=
ter">https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CADbh%2Be=
TfRrCVvisr2%3DOGCBX5%3DPATnzv_0gMCFax-_LBf%2BwUhuQ%40mail.gmail.com</a>.<br=
 />

--94eb2c1244c2c851ed055ff2175a--

.
