220 33567 <CAFk2RUb3t+8HOWGpCtMw+j7LZC-f0WLQ7LMX9Lz6d=kZCQB_yQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Add type alias that mirrors given type
Date: Thu, 3 Aug 2017 18:10:09 +0300
Lines: 36
Approved: news@gmane.org
Message-ID: <CAFk2RUb3t+8HOWGpCtMw+j7LZC-f0WLQ7LMX9Lz6d=kZCQB_yQ@mail.gmail.com>
References: <20f365ce-2a24-4576-894f-923e7b9cd76e@isocpp.org>
 <edbf0c37-4672-0c79-d95b-331b3812ba1c@gmail.com> <03d0948e-506b-4e0b-b5e0-b255d3698cd5@isocpp.org>
 <7ba631a5-c4c5-cd5b-8e80-c583420cfca5@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1501773023 12979 195.159.176.226 (3 Aug 2017 15:10:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 3 Aug 2017 15:10:23 +0000 (UTC)
Cc: Nicol Bolas <jmckesson@gmail.com>, antonio@perezexcelsior.com
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBUXZRTGAKGQEMQZ7L4Q@isocpp.org Thu Aug 03 17:10:12 2017
Return-path: <std-proposals+bncBC5JHI7A7ALRBUXZRTGAKGQEMQZ7L4Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f198.google.com ([209.85.161.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBUXZRTGAKGQEMQZ7L4Q@isocpp.org>)
	id 1ddHlL-0002S3-AW
	for gclcip-std-proposals@m.gmane.org; Thu, 03 Aug 2017 17:10:11 +0200
Original-Received: by mail-yw0-f198.google.com with SMTP id l82sf25498702ywc.1
        for <gclcip-std-proposals@m.gmane.org>; Thu, 03 Aug 2017 08:10:12 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501773011; cv=pass;
        d=google.com; s=arc-20160816;
        b=tuHJ/kFEm3dQKtzy5lFKZyJV/nvXCufpVwVSkWC00FTJSGTn3IUIdJlqUSN13jTKpA
         4c/yjghpiZztyqyF9S5/Ccc9vWv5mXhK3LHUUWjPFRIVWwfUZkShZ8cB/BBpGeJN1VCg
         B/oCDUX7WiwpxTOW8dTKycdQAc5mQ+oxr13nmXTA7MqXDbBugnvCRjNB4vXLMFATD/af
         dIblvJ1RRiJz+mj6rO5PMN5xLVLdKz6voxTyRMyxa/A/4zN2GN0X88IrH+yR95Qap7gg
         DGYFd+bCgylGGOLA/WxgvMgZ5I8ox6nOnMWCdaU0MrQdSyV5kVSPa0P55PC04iixAXmN
         U3Dw==
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:cc:to:subject:message-id
         :date:from:references:in-reply-to:mime-version
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=F2FLSBuOxCgN0VSQWe6tWaTwFCnZBsTNJKAWICkTVYk=;
        b=JIBSxDjqUX7uTNRNDZ7mpFcRP77gUsm1qH7MThZwE933DLauN9LI3MlJPiiOEqwSNp
         Wf5FjPKUgzMBauJwARAIkmh1+koy/HKnSy2Tkfqw2l4QQa8DEwS2scXCLP07n8YBGgig
         qw21/Hen6DsM+ijFcFr8Pm4T+TiYptcPJ98F8CJYpMg7YtdH0YEz4v+Fo4LhBMsUz1n9
         ImbL1aC7KhUbbytkxbRVUNh9M972uZRBYcSTf3wSd/d1nJgkLCYtK4nZ3Vd+oU8ABcVr
         zvwCyCLloGUjW1M0O08RREWJYSIh677JMj/sRxIuei7vpOSTJJ0JLKznSH9BjhR/veLl
         Rv2g==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=A0nJfThr;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::22c as permitted sender) smtp.mailfrom=ville.voutilainen@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
         :cc: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=F2FLSBuOxCgN0VSQWe6tWaTwFCnZBsTNJKAWICkTVYk=;
        b=Q+iek+8WDPODhAOw7qbB+NoAcatx/TrBSenxeGXspvgrFz0dA55h/icfrbTgZARbDo
         sUz3g//fCxPuNDyZgWPb4ZU4l0AcQiGYkxvdKm36YhZRdMrdq2LOeQVLIStie/b1HGZZ
         kt56E4pkIYNYDMxXbc/J2gR+bS2Ok3iLjJKi3gtT7KnJh+hBGWK/8c+KPSVf6UgloFFo
         0vd5IJASExU7vYUau9Van+6x2k17QQ/BRzLiV8W1LPSRd7tOlME/LXyvK3hr5ufmwazN
         3wWuYbogO+8ezlRliNTwg23o6aqrvRqC/ceQcLJTv9CM1Aq5LNu2OjQJInBdYQuUICBE
         O+mw==
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:cc: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=F2FLSBuOxCgN0VSQWe6tWaTwFCnZBsTNJKAWICkTVYk=;
        b=l/sWrPkw8q7ONevTkH3b4XDPwzcfiJfYDaU1rYTjdAtqRUlBmRkp4gXusekSe+0Gal
         DqT3mrkm5JpYrL6h1tltzT7awIu/F2uvemWcYW1qTDDd4yYf8CZiACTFFoL6QLlcDM6C
         u0nP+HyvogaDYYax6y/MHPP0EGP6O5idCogVNpqg92sUY7BTLVJKT4JmCFXigrq3nJ+F
         pKGDnMT8xV8TYUmsv1JwyUeWRsh0c9AjpNSukWL4KrQFNuo4zrlIQCa/H/jsU5MXnUBj
         nFqAWoaVjl/kAQxJLWlmeG+pOzeQatHxFfa0uwOpxAexZ6npxrJive6x0mXqvkhkFV82
         djtA==
X-Gm-Message-State: AIVw112JphjvlhwIMjMmbgcTKrOL1MNah7vnI0dmTG+oNrkLWzpzeBth
	uxuRV5giYkMDkBuD
X-Received: by 10.129.52.87 with SMTP id b84mr1216322ywa.226.1501773011819;
        Thu, 03 Aug 2017 08:10:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.58.21 with SMTP id m21ls1552489itm.12.gmail; Thu, 03 Aug
 2017 08:10:10 -0700 (PDT)
X-Received: by 10.176.17.228 with SMTP id q36mr1383205uac.199.1501773010451;
        Thu, 03 Aug 2017 08:10:10 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501773010; cv=none;
        d=google.com; s=arc-20160816;
        b=nZt2hcmT471rd4YO/ljfpJ2hG135YNUfFQ35eoP4hNFHsD8GfR+9H98z7tl9Vn4Ha6
         TlQUpJdO9fXCAkdeAPVZCzA/08C31Sfa9RmQUiVDwO9bMzH97GDyxxj1gHISaGGK9M6H
         eTkg+ixvdiZpu9FaCP6JtQez6ftaO6pEGNwpWoW8X7PT+QhvGhJKN1LqCwJLdYw/OiCo
         MSkUnDeG+tM+nqBajMlvT4mgtOfQKeSr6M5o4XGyonFEFgYwUeBQV+YTctwnSIDpb7nJ
         K7NG3Hj9wdYlmIYXankYp6zzHvmf2sjrPczwGvj9zu6XZ8bh6aRvDJXHxJER9eJwqsnt
         B80w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=cc:to:subject:message-id:date:from:references:in-reply-to
         :mime-version:dkim-signature:arc-authentication-results;
        bh=tKikn7VymqWEUI0Y1GWei1efT5rflNM439/aWfwXnpg=;
        b=brAwXryqOSHW8XqGPoKM8QRH5+KkQt756IAQyInmZgZ1fFCBe/9kmoVYwnBt7J2HA2
         maagu+Yr1mbuzehJVwdeDG8bIS7qVh+fF7MbYU3xO/JyMbKtYGpiacNs5EL74kWFZD/q
         SJvVMKdsJgASkpXkbST0w8j3YcU4mBBi25540ftHKOfUMP4SCfoWmPzjzQU9Wf/6a2ig
         H71XDxhx83xNf4uyts23CDx14DJ07t6S2CcNeCibac66dAxoNg9RyA3z/RtqQscfj7ZR
         lIt2uOpd53yYdb0671qk2oWnn1LXhYda6T2SE+9lGCU+VOVok6S5Mh6oSg45jBZbDC5K
         NqmA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=A0nJfThr;
       spf=pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::22c as permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com. [2607:f8b0:400c:c08::22c])
        by mx.google.com with ESMTPS id f10si18477699uaa.176.2017.08.03.08.10.10
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 03 Aug 2017 08:10:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::22c as permitted sender) client-ip=2607:f8b0:400c:c08::22c;
Original-Received: by mail-ua0-x22c.google.com with SMTP id 80so7458225uas.0
        for <std-proposals@isocpp.org>; Thu, 03 Aug 2017 08:10:10 -0700 (PDT)
X-Received: by 10.176.2.205 with SMTP id 71mr1394726uah.161.1501773009998;
 Thu, 03 Aug 2017 08:10:09 -0700 (PDT)
Original-Received: by 10.103.103.65 with HTTP; Thu, 3 Aug 2017 08:10:09 -0700 (PDT)
In-Reply-To: <7ba631a5-c4c5-cd5b-8e80-c583420cfca5@gmail.com>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.b=A0nJfThr;       spf=pass (google.com: domain of
 ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::22c as permitted
 sender) smtp.mailfrom=ville.voutilainen@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:33567
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33567>

On 3 August 2017 at 17:38, Matthew Woehlke <mwoehlke.floss@gmail.com> wrote:
>>>> template<class T, size_t n> void print(std::typemirror<T[n]>& arr)
>>>
>>> Um...
>>>
>>>   template <typename T, size_t N>
>>>   void print(T (&arr)[N])
>>>
>>> ...?
>>>
>>> I don't see a motivating use case here...
>>
>> I think the motivation here is that that syntax looks *terrible* and quite
>> a few people have no idea how to type that.
>
> Yes, it's esoteric, but if this is the *only* motivation for the
> feature, IMHO it isn't worth a new library feature.
>
> (It's actually not *that* weird, either... function pointers aren't much
> different...)


Users of std::array have no such problems. I would recommend against
getting any hopes
up for improving raw arrays significantly in this area or any other
area, when a far superior
facility has been part of the standard for 6 years and ships in every
implementation you could
hope to adopt a language improvement.

-- 
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/CAFk2RUb3t%2B8HOWGpCtMw%2Bj7LZC-f0WLQ7LMX9Lz6d%3DkZCQB_yQ%40mail.gmail.com.

.
