220 8140 <CAGsORuD5Zza0CcxL7FrpkxMsXX0duXGgzfsimFobTEKBhxydKg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <zy@miator.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: A compile-time string literal library type
Date: Mon, 16 Dec 2013 10:44:22 -0500
Lines: 30
Approved: news@gmane.org
Message-ID: <CAGsORuD5Zza0CcxL7FrpkxMsXX0duXGgzfsimFobTEKBhxydKg@mail.gmail.com>
References: <d9fcae4a-7452-4660-8053-1386f851951f@isocpp.org>	<CAGsORuAv7xKEXMsUfWd04tkBULXRVM90RqQguJfdqkX1KbLsPg@mail.gmail.com>	<52AE9F22.1070403@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1387208670 29194 80.91.229.3 (16 Dec 2013 15:44:30 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 16 Dec 2013 15:44:30 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCSKRWMD4EHBBYF7XSKQKGQEKKVZW5I@isocpp.org Mon Dec 16 16:44:37 2013
Return-path: <std-proposals+bncBCSKRWMD4EHBBYF7XSKQKGQEKKVZW5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pb0-f70.google.com ([209.85.160.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCSKRWMD4EHBBYF7XSKQKGQEKKVZW5I@isocpp.org>)
	id 1VsaLT-0003y3-4M
	for gclcip-std-proposals@m.gmane.org; Mon, 16 Dec 2013 16:44:35 +0100
Original-Received: by mail-pb0-f70.google.com with SMTP id rq2sf16195851pbb.5
        for <gclcip-std-proposals@m.gmane.org>; Mon, 16 Dec 2013 07:44:34 -0800 (PST)
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:date
         :message-id:subject:from:to:sender:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=heLma/SAtYRbRu7QFEy3U0fpUGq2Or4XJ/7k7WMzCX4=;
        b=N6YPoH7A3GekcBbdlAEcMfCTyJn+tzMI9hPydbXsHCoSXGAZ3WlugrIAKaHNql33tX
         SqGAIGhVATPk0ZquyAMt6tHUAAQhGkVEnwif4ykwcvj2H7wh9ouYGyJbBIJLmSiU8cRy
         kGsJSkOcgq757Q+CTNtoEzaEXOO88KxPMrDU17nN1qkb/jl/ldPNT69hRbkGdY7708Wg
         mZb87Nnrr7cjijD6CsGRJ05JOBo4B4Gv6dzeCPhUO5Ke+BhfI/gHPW0e5IlXbuZtHtdz
         gnAIE3lD28c9nkHHFua9Tr8B5OxGTUeFcvo/FMpOJfslRucW1LspXbK7vJoVJvCArG0n
         e69g==
X-Gm-Message-State: ALoCoQmVNh1luvvYbYq25DjAltq/q5IDdNmKy4ryOHCv+vpiDZW9yAOybtC/hMaG/CtkK++UfwwM
X-Received: by 10.66.231.74 with SMTP id te10mr10766777pac.16.1387208673821;
        Mon, 16 Dec 2013 07:44:33 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.131.4 with SMTP id oi4ls2014341qeb.76.gmail; Mon, 16 Dec
 2013 07:44:32 -0800 (PST)
X-Received: by 10.236.88.111 with SMTP id z75mr6909279yhe.84.1387208672753;
        Mon, 16 Dec 2013 07:44:32 -0800 (PST)
Original-Received: from mail-s68.mailgun.info (mail-s68.mailgun.info. [184.173.153.196])
        by mx.google.com with ESMTP id 25si13012203yhc.157.2013.12.16.07.44.32
        for <std-proposals@isocpp.org>;
        Mon, 16 Dec 2013 07:44:32 -0800 (PST)
Received-SPF: pass (google.com: domain of bounce+3f9131.69110-std-proposals=isocpp.org@miator.net designates 184.173.153.196 as permitted sender) client-ip=184.173.153.196;
Original-Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com
 [209.85.220.178]) by mxa.mailgun.org with ESMTP id 52af1fd7.58d2830-in1;
 Mon, 16 Dec 2013 15:44:23 -0000 (UTC)
Original-Received: by mail-vc0-f178.google.com with SMTP id lh4so3239439vcb.23 for
 <std-proposals@isocpp.org>; Mon, 16 Dec 2013 07:44:23 -0800 (PST)
X-Received: by 10.221.51.5 with SMTP id vg5mr2523743vcb.40.1387208663011;
 Mon, 16 Dec 2013 07:44:23 -0800 (PST)
Original-Received: by 10.221.73.199 with HTTP; Mon, 16 Dec 2013 07:44:22 -0800 (PST)
In-Reply-To: <52AE9F22.1070403@gmail.com>
X-Mailgun-Sid: WyI3MTBkYiIsICJzdGQtcHJvcG9zYWxzQGlzb2NwcC5vcmciLCAiNjkxMTAiXQ==
Original-Sender: zy@miator.net
X-Original-Sender: zy@miator.net
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of bounce+3f9131.69110-std-proposals=isocpp.org@miator.net designates
 184.173.153.196 as permitted sender) smtp.mail=bounce+3f9131.69110-std-proposals=isocpp.org@miator.net;
       dkim=pass header.i=@miator.net
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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8140
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8140>

On Mon, Dec 16, 2013 at 1:35 AM, David Krauss <potswa@gmail.com> wrote:
> Right now I'm making due with an imperfect constexpr hash:
> [...]
>
> The ud-string-literal is used directly as a non-type template argument, so
> it must have scalar type, which cannot contain more information than a
> std::intmax_t, or else be a reference to global, which seemingly cannot be
> generated suitably. Another way of looking at this is not the need for
> template string arguments, but the need for a non-type template argument
> that can uniquely encode arbitrarily much data, and can be returned from a
> ud-string-literal function.

AFAICS all you are building is a symbol table, then why not ask for a
language feature like, a symbol type?  Compiler builds symbol table
cheaper and nicer then you do :)

-- 
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

-- 

--- 
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/.

.
