220 29440 <CANh8DEkmUOnyBvC2=z1eETFq+BjAax15mAVaAP=F1GbVCHgtGg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: "'Matt Calabrese' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Allowing string literals to match `char...` packs
 in templates
Date: Thu, 17 Nov 2016 10:14:11 -0500
Lines: 23
Approved: news@gmane.org
Message-ID: <CANh8DEkmUOnyBvC2=z1eETFq+BjAax15mAVaAP=F1GbVCHgtGg@mail.gmail.com>
References: <9de07b5f-f870-4a02-882f-54f9fdd12ffd@isocpp.org>
 <CANh8DEm_8ngPVZyMAP4GU8nbvgiD2XxBrLT0M1Pk94m8+tQrug@mail.gmail.com>
 <d9433fac-152f-4515-b518-985a78768c03@isocpp.org> <6b73bf50-4189-4d5d-a2c0-2debb085659e@isocpp.org>
 <f99786d0-d4fd-40ee-89fe-89399fe8d600@isocpp.org> <10914b55-c188-4573-a4c7-ba686f213a38@isocpp.org>
 <CAEddoJZf-Y9D90ZePLoMv_HcFeCJz+FC25WRVdWZjbsrrS4FEQ@mail.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
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1479395656 12821 195.159.176.226 (17 Nov 2016 15:14:16 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 17 Nov 2016 15:14:16 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCGNLO5F34OBBRESW7AQKGQEMI46F6A@isocpp.org Thu Nov 17 16:14:12 2016
Return-path: <std-proposals+bncBCGNLO5F34OBBRESW7AQKGQEMI46F6A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f198.google.com ([209.85.220.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCGNLO5F34OBBRESW7AQKGQEMI46F6A@isocpp.org>)
	id 1c7OOA-00022S-Dg
	for gclcip-std-proposals@m.gmane.org; Thu, 17 Nov 2016 16:14:10 +0100
Original-Received: by mail-qk0-f198.google.com with SMTP id y205sf180134530qkb.4
        for <gclcip-std-proposals@m.gmane.org>; Thu, 17 Nov 2016 07:14:14 -0800 (PST)
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
         :content-transfer-encoding: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=Kg2dy4qdZrYjG6YAFVsDruXl7jEoEX4nRcZuNSMrheQ=;
        b=qQ8WOXs7sWTXgoXzEdsPZ/T0E1YFldLMZhwEYurHrVHqvL/5cAkHks5qw1GB63mBYU
         s7c1e8MiQ8TMTqw0e6R8jjkkkDs+PIg8G57ms/3XyiR/k+AmxzdvDTaQg3mqFxsF97g7
         mKG3TpXksntgTKmXrUxDIGLff7glcSP/wJNjOLzIw0HwxF+eZLb2K0ki9t3wG+QNyxqQ
         n1AUtDks95X6C1JF7FnkQLz+gCoRDCY2go8zAq6iSLskJaTbmDwr8+PbJkgWJMLrRqSE
         O/3bahy5rB7ehA1qUcgkRvM6IG9fV0Bk+Xg57QcXhXWyEoMu1PeN4SM2sQNzIUBEhEeE
         QjpA==
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:from:date
         :message-id:subject:to:content-transfer-encoding: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=Kg2dy4qdZrYjG6YAFVsDruXl7jEoEX4nRcZuNSMrheQ=;
        b=EIZxqoXmXI5JV35vgHa6PzSezHlqJUrpXM5cniCCbdE4JqQP7UQ82zfHNwoH6gbYjq
         XFYjfCeezh0XPwq8C97QEF8ylf1rsYjbKHLU7ReaIeUHF9617gHLe1awbp+uUeNRlXJA
         S3uQ2pQkPudPnWrAqx9x9vbklEpmtNnImLlnd8Lkv3YP04OxkLiC1Q2LBe+mhe2FX7p0
         evlyHdRhySGGm15Ww76bNxJjnio2rRa3TnFecKcS5zM689NOKtQxd1Kjrq9zmPpKduhG
         Cle3tBX1VG66s7F2CW5fXYObrke8UTdU4/ZO8yGf0jhnw4up83X35l/hW0g0e1ZWbB93
         RMG 
X-Gm-Message-State: ABUngvdLgKstUHcayAciX0ZmdzaftYcUL+qMPs3oU6fDNPs1RE+oib/0TcFTJ7JprXU0ww==
X-Received: by 10.129.112.67 with SMTP id l64mr1213787ywc.20.1479395653573;
        Thu, 17 Nov 2016 07:14:13 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.29.137 with SMTP id y9ls4244360otd.39.gmail; Thu, 17 Nov
 2016 07:14:12 -0800 (PST)
X-Received: by 10.159.49.22 with SMTP id m22mr2112684uab.72.1479395652628;
        Thu, 17 Nov 2016 07:14:12 -0800 (PST)
Original-Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com. [2607:f8b0:400c:c05::230])
        by mx.google.com with ESMTPS id f10si737428uaf.137.2016.11.17.07.14.12
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 17 Nov 2016 07:14:12 -0800 (PST)
Received-SPF: pass (google.com: domain of calabrese@google.com designates 2607:f8b0:400c:c05::230 as permitted sender) client-ip=2607:f8b0:400c:c05::230;
Original-Received: by mail-vk0-x230.google.com with SMTP id 137so144386454vkl.0
        for <std-proposals@isocpp.org>; Thu, 17 Nov 2016 07:14:12 -0800 (PST)
X-Received: by 10.31.135.199 with SMTP id j190mr2048049vkd.62.1479395652096;
 Thu, 17 Nov 2016 07:14:12 -0800 (PST)
Original-Received: by 10.103.89.209 with HTTP; Thu, 17 Nov 2016 07:14:11 -0800 (PST)
In-Reply-To: <CAEddoJZf-Y9D90ZePLoMv_HcFeCJz+FC25WRVdWZjbsrrS4FEQ@mail.gmail.com>
X-Original-Sender: calabrese@google.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@google.com;       spf=pass (google.com: domain of
 calabrese@google.com designates 2607:f8b0:400c:c05::230 as permitted sender)
 smtp.mailfrom=calabrese@google.com;       dmarc=pass (p=REJECT dis=NONE) header.from=google.com
X-Original-From: Matt Calabrese <calabrese@google.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:29440
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29440>

On Thu, Nov 17, 2016 at 3:13 AM, Jonathan M=C3=BCller
<jonathanmueller.dev@gmail.com> wrote:
> Sorry if I'm asking the obvious question here: Why not guarantee that
> different string literals have different addresses and the same string
> literal has the same address and use const char* as non-type template
> parameters?

Ville and Louis already covered a couple of reasons why this won't
work, but yet another is that not all string template arguments come
directly from literals. It's entirely possible that such strings will
be the result of compile-time string manipulations (and I predict that
this may even end up being fairly common, given metaprogramming).

--=20
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 e=
mail 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/CANh8DEkmUOnyBvC2%3Dz1eETFq%2BBjAax15mAVaAP%3DF1=
GbVCHgtGg%40mail.gmail.com.

.
