220 41469 <f870e6c5-4cb2-47f8-d963-363e68626841@gmail.com> article
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Joel FALCOU <joel.falcou@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Allow array as function return value
Date: Mon, 18 Feb 2019 17:33:14 +0100
Approved: news@gmane.org
Message-ID: <f870e6c5-4cb2-47f8-d963-363e68626841@gmail.com>
References: <e1c07ac6-73d0-40c8-98a0-60a5c8a6c575@isocpp.org>
 <CAM76qmtaaQtCP_+f5Z6B3jCsruZVzSR7Q6ezcVX=zMSjq4ujcQ@mail.gmail.com>
 <8a165c32-718a-4247-93b4-44235a2cf122@isocpp.org>
Reply-To: std-proposals@isocpp.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format=flowed
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="126053"; mail-complaints-to="usenet@blaine.gmane.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.1
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCPININ5TAFRBTV4VPRQKGQEX5QDN6I@isocpp.org Mon Feb 18 17:33:20 2019
Return-path: <std-proposals+bncBCPININ5TAFRBTV4VPRQKGQEX5QDN6I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr1-f72.google.com ([209.85.221.72])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.89)
	(envelope-from <std-proposals+bncBCPININ5TAFRBTV4VPRQKGQEX5QDN6I@isocpp.org>)
	id 1gvlr6-000Wfc-78
	for gclcip-std-proposals@m.gmane.org; Mon, 18 Feb 2019 17:33:20 +0100
Original-Received: by mail-wr1-f72.google.com with SMTP id f5sf8051014wrt.13
        for <gclcip-std-proposals@m.gmane.org>; Mon, 18 Feb 2019 08:33:19 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1550507599; cv=pass;
        d=google.com; s=arc-20160816;
        b=XkMJSHecjzxjb8VKTuurJfdA9MShVzbQ4rrKOjxJLg+wIEgXPuzplwTecvV+dVBl0p
         UFxPyyIC2w/WGk/vLrYV80rR0XuRbSf91B14ajQC32xxKrt+M6jAe8iz1qhy//xvC5gN
         Rjvm11xrCCSR24NWZtzIbQuWLbbbL7semYaLR7BIZc8CvyAL2mRsDwiFR46sMRrxGQJL
         2hZG0FIsDECHYu9Dp3zn2HM+TrC91QekK1NNJYAvm8xUcgFwRmK3B2er7/0C7/clc/Io
         +JkrnmcSkniiLNoR2yh16gY1eivwZYKAx4T606i0b/ragf5bZi1gIkNHdz9kAdhwY296
         PqLA==
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:content-language
         :in-reply-to:mime-version:user-agent:date:message-id:from:references
         :to:subject:dkim-signature;
        bh=hXVGgseo3YADFxn8mSh70shQDf88W22cD7qsOdoIZmI=;
        b=NrDY0pfUEzOTNKoTze05Pipl2zQFAGii1gQvhrDV7dYu6iCQVo4OGw5tea2ECHmgi4
         eVh5wAFLG2sZEFyiVmbPGHVQotZd44j4TO7cFnzS0yBFLCOxIlz35RnqQOUqwdSMINdF
         Eub6aSH9arMcJo1bIJZGVVn0gcrtnUPd6zW5Zu8TXXs4aXoAAaL1e68vvhN6syIK1HWb
         w6Xp2Tdc14xiNg0IFYNVr0O2BqqU6DQMHEFhEncW++A1MB415UekN68tVq49rwUtek8/
         1gaAtghIzHRkdSpbqar0UfA7kSHCMOpkt1Bjy+xgCQJIceuy5mmIoi22a2rS6hhUkWjb
         Ec3A==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=VRnZ7JRv;
       spf=pass (google.com: domain of joel.falcou@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=joel.falcou@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-language: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=hXVGgseo3YADFxn8mSh70shQDf88W22cD7qsOdoIZmI=;
        b=dxcO9IvAST0G1xtkKYTfkwdUqQNQfjeUMUfSfaImun7WC89/O+ZlVvQBDKiHgX6fcw
         4MjTkvm+vI+v7Vp/9qccHKCR12FGU1CENK/eFEqiBS9mrGIMiATXw039LkpTu52qlCAT
         QbOqVQ4aWvPj0s48WguOb2p5gIh6a1nTr3ubPEzxQWHJm31u8CYgurxhEMA6XS3VQkA0
         d6+Y1228JFyetCl2cV1PQVlMCSd4k6ikEUAPe6Uf0EypgKFCmJIGkjxYnTAdixBEOgEY
         RywNMu9nVHA/Noqm39Lse8E3vDQvneQrIOQyB3DXR0Vbu6e9Lv+nTq5ZihQ3jQOSX8dS
         miUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-language
         :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=hXVGgseo3YADFxn8mSh70shQDf88W22cD7qsOdoIZmI=;
        b=QFpRJeKTQGnyxQ6X2bAuMZPhiEEvIvtYGWPqgmmzaGWzuZ8OuJUvsdeBmGt7mw9a1Z
         4L7zydiLC8eIg4tGaqelEADeul3uvncXCEJ9VMcch/FR82K0rxChd0gF8PtfcCUa9PT8
         pcIM6b1M/oQfbq/DEZbpDTVTUIvMaYE1LQQ30efjALOKDOL60X1tBlgyX+rKOgwXKxPT
         ZkGBuMZjoyij+hLj7aiCccK+mOQJQzq8Hix7MtyqzzpDxVxhxz+K8nFFODKnubcc8PaY
         uefZ/s17LXU/9mLtROcUQf4aGE64gNMBgtx4HvYPZD952wrfGND+fEUiTMFaF30jtv1f
         7 
X-Gm-Message-State: AHQUAua8vpRA0FyqRYmMQKUGawuZW53nr9nEf8Tu9uOWzpxV8xNTkTs3
	iwKtVKXJJEv5l6aUCVOtTeEtPQ==
X-Google-Smtp-Source: AHgI3IYlaxsftBncgeWPXuGaBcwv9Gh06FtCp9OX/wsm/AGlS4qiVgf5sGpBa0TI/CAw5jMPyME38Q==
X-Received: by 2002:a05:600c:21d4:: with SMTP id x20mr1554721wmj.25.1550507599501;
        Mon, 18 Feb 2019 08:33:19 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a1c:ce0a:: with SMTP id e10ls1770795wmg.1.canary-gmail; Mon,
 18 Feb 2019 08:33:17 -0800 (PST)
X-Received: by 2002:a1c:ce02:: with SMTP id e2mr6333768wmg.29.1550507597666;
        Mon, 18 Feb 2019 08:33:17 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1550507597; cv=none;
        d=google.com; s=arc-20160816;
        b=LHi7RxhEIc02OLESqJEATS8t8W/So+7q6lY+jvHNpAuWXLLKENqk/2zwCbL7z+7WFy
         b4LU8ZMQbeGNb/vBj3dJFx/s71nuM7N7GreMjaq+r2KzWi6KAFHIX/Ulx78QWc225I2/
         O5eW1w15OTVNafjbYCVCwfoBQZo72OzNJdPUu0GQDUNpVOYozJ5Saqn8xFs1vWQj4scF
         RGUndS6rhINkSELcT9cJ23g2lIfPmZhOuMh3DybCWeXBJiaDbHjpq2aBa/CL1krn8vHY
         O/TNEzCXXyuTSjgK06k9Dy86lGHjuEzuGZFG8MzrSTiV1Zs9lnwt+Phl2P4iX/sl3PaO
         YXQw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-language:content-transfer-encoding:in-reply-to:mime-version
         :user-agent:date:message-id:from:references:to:subject
         :dkim-signature;
        bh=YCElaIRKyN6Dya1X6obo/goS8TK3OWxURuld8HEseps=;
        b=fOE9RK6zZ0i74MfEfxvXRUzFR+YMc+kNlrlicuUTO41Du70WU1OHTSyAPpuEFiuBFm
         n1U8Vb7Dgy8KCBjfl/jTobxzUC26sOPZexwtVXb8HMvBetAVltfy3SUVeO1OhivTm47k
         /nEK+hhkjzQzZbXG2YAQ4SjBBsHlvj7j4+4WUqaYRGSeaH/bOhUWRPWV86ce8foJB7SM
         qxuq293sx2MyvJ5ATmV7XwBJuJ1KsrZehmfjksIH8UdwKxiJGdIG74ACb/LlAd9PWl91
         iFcoUjD9Wx2iSPyiapoUAA1MIoeW9Z01I1GUCJHOTU3pszpIknzVmKet/VCYaqlXhZA5
         bgYQ==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=VRnZ7JRv;
       spf=pass (google.com: domain of joel.falcou@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=joel.falcou@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE 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 l7sor8984716wrr.32.2019.02.18.08.33.17
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Mon, 18 Feb 2019 08:33:17 -0800 (PST)
Received-SPF: pass (google.com: domain of joel.falcou@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a05:6000:104b:: with SMTP id c11mr15249483wrx.9.1550507596566;
        Mon, 18 Feb 2019 08:33:16 -0800 (PST)
Original-Received: from [129.175.30.4] (lri30-4.lri.fr. [129.175.30.4])
        by smtp.gmail.com with ESMTPSA id p16sm25287623wro.25.2019.02.18.08.33.15
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 18 Feb 2019 08:33:16 -0800 (PST)
In-Reply-To: <8a165c32-718a-4247-93b4-44235a2cf122@isocpp.org>
Content-Language: fr-classic
X-Original-Sender: joel.falcou@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=VRnZ7JRv;       spf=pass
 (google.com: domain of joel.falcou@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=joel.falcou@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE 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:41469
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41469>


On 18/02/2019 17:24, will wray wrote:
> std::array is long in the tooth as an early C++11 demo class.

Wrong - it's perfectly simple for entry level. Source, I teach C++ since 
10 years and array has never been a problem
C array always have been.


> std::array hasn't proved itself as a 'vocabulary' type for API usage -
> spans and ranges supersede and they operate fine with built-in array.

std:::array is a data owner, nothing comparable to span

> std::array does not 'roundtrip' the wrapped array type; data() returns 
> a pointer.

And ?

> std::array is awkward to use for multidimensional arrays.

Opinion, not fact

> std::array CTAD guides added for 17 only give 'all or none' deduction 
> - you can't provide
> just the type and deduce size - function's deducing built-in array are 
> more flexible.
Make a proposal and amend them.

builtin array are non copiable, are not object etc...
Is the game of give opinions instead of facts done or ?

C style arrays must disappear as they have no value over std::array

-- 
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/f870e6c5-4cb2-47f8-d963-363e68626841%40gmail.com.

.
