220 14651 <76dd537a-4a3e-429e-b9b2-06b81d917e0d@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: rhalbersma@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: User defined literal for size_t
Date: Thu, 20 Nov 2014 05:51:43 -0800 (PST)
Lines: 81
Approved: news@gmane.org
Message-ID: <76dd537a-4a3e-429e-b9b2-06b81d917e0d@isocpp.org>
References: <CAGBGO5WvpWzV4K1VT_uB7SvZLyCN2RmbYWzTU0Dpeg0U0Q7QSQ@mail.gmail.com>
 <c1fbec45-2f75-4d1e-a7f2-ac8d441b07b2@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_103_1006900569.1416491503260"
X-Trace: ger.gmane.org 1416491510 27441 80.91.229.3 (20 Nov 2014 13:51:50 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 20 Nov 2014 13:51:50 +0000 (UTC)
Cc: rhalbersma@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCMYZKMJV4IRB37DW6RQKGQEJVH3NPQ@isocpp.org Thu Nov 20 14:51:45 2014
Return-path: <std-proposals+bncBCMYZKMJV4IRB37DW6RQKGQEJVH3NPQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qg0-f72.google.com ([209.85.192.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCMYZKMJV4IRB37DW6RQKGQEJVH3NPQ@isocpp.org>)
	id 1XrS9B-0000fa-4a
	for gclcip-std-proposals@m.gmane.org; Thu, 20 Nov 2014 14:51:45 +0100
Original-Received: by mail-qg0-f72.google.com with SMTP id l89sf5728841qgf.7
        for <gclcip-std-proposals@m.gmane.org>; Thu, 20 Nov 2014 05:51:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:content-type:x-original-sender:reply-to:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=9YZ3p8LCmFNb0pUiEeuJUtDkblg7AREJ075fZbGJpFE=;
        b=y3EJ+b/1MLyn/szXFChyrJTjR+GGN0OdNmxX8qM/3Br1Ow4xNR8ly0HnT74NV1Gjg2
         QZGnKQuc6Q0IleFcy7z9N1YEmLp5h+BCxjBpV9V3X/O17rSOkvqVED5kM8bFyLt1GcyG
         7mxBmMh/ByXQmsVqHvcn6oqnyLqCUWc7DaSqTcRrm21h/hOAdsJAVi5LxFnzBRoD5ha8
         uso4yPxobHuNQq0ggAc0O/N3keUv4y9l/g/jaRgzQqO37UFQCgwfczpUuAfWLcTr82Rg
         Yv59unq/nNjE4X9e7qhA0Rz1gnEJrQqseXZn5gc8xHsllrb06u59cK5VqgVweEILMJ4w
         BKHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to
         :references:subject:mime-version:content-type:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=9YZ3p8LCmFNb0pUiEeuJUtDkblg7AREJ075fZbGJpFE=;
        b=DLur5A/mByNOwNkZ65aCJFgXg9woYc9g95GbAieQOVT7dTESMLHxv/4UvLGCJ+beiv
         OKY39o35rm9F1nNlqj4onNbMgpwOwVBbudsPzScb9yDGO2Ba0FAx/hRp/Xi22iCXAmFq
         XGgFjiWSYRt3N4HDx8+0pjxd2GHcD6Thn6bZrez72xYDRZj6scliNpC5UB/gwQ9h8oQx
         qKCOx6itNvCyPpaZh2VKA1wxUpqGb6NPCx9nTatIGNH/zOue6tXa6LMVe0yiO/maE2ke
         6gJcdVuPQHf/Ww4zOGLvev/229KKHo5FSp5wDIo8hC4rm/yXqDr6oTTTNt9MG8SLCscS
         IbdQ==
X-Gm-Message-State: ALoCoQkwT90fm+mZ93OTuIi45cC9zVZrjzH+ouzf+olSpX5hvT/uyf8aFkftLQVvJjucJ452qYeU
X-Received: by 10.236.231.180 with SMTP id l50mr86750444yhq.4.1416491504330;
        Thu, 20 Nov 2014 05:51:44 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.109.225 with SMTP id l88ls231828qgf.73.gmail; Thu, 20 Nov
 2014 05:51:43 -0800 (PST)
X-Received: by 10.140.100.201 with SMTP id s67mr2633qge.34.1416491503656;
        Thu, 20 Nov 2014 05:51:43 -0800 (PST)
In-Reply-To: <c1fbec45-2f75-4d1e-a7f2-ac8d441b07b2@isocpp.org>
X-Original-Sender: rhalbersma@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: <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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:14651
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/14651>

------=_Part_103_1006900569.1416491503260
Content-Type: multipart/alternative; 
	boundary="----=_Part_104_806724823.1416491503260"

------=_Part_104_806724823.1416491503260
Content-Type: text/plain; charset=UTF-8

On Thursday, November 20, 2014 12:44:01 PM UTC+1, Douglas Boffey wrote:
>
> Just a couple of corrections to your draft:
>  
> 1) In the first code fragment, you use namespace std::support_literals, 
> whereas you use namespace std::literals::support_literals further down, and
>

This works because both namespaces are inline. The quoted N3642 uses the 
same mechanism, e.g. with std::literals::chrono_literals. 

    using namespace xstd::support_literals;

    auto v = std::vector<int> { 98, 03, 11, 14, 17 };
    for (auto i = 0z, s = v.size(); i < s; ++i) 
        std::cout << i << ": " << v[i] << '\n';

Live example at: http://coliru.stacked-crooked.com/a/1e0f576e96ab8983 

-- 

--- 
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/.

------=_Part_104_806724823.1416491503260
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Thursday, November 20, 2014 12:44:01 PM UTC+1, Douglas =
Boffey wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-le=
ft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">=
<div>Just a couple of corrections to your draft:</div>
<div>&nbsp;</div>
<div>1) In the first code fragment, you use namespace std::support_literals=
, whereas you use namespace std::literals::support_<wbr>literals further do=
wn, and</div></div></blockquote><div><br></div><div><span style=3D"font-fam=
ily: arial, sans-serif;">This works because both namespaces are inline. The=
 quoted N3642 uses the same mechanism, e.g. with std::literals::chrono_</sp=
an><wbr style=3D"font-family: arial, sans-serif;"><span style=3D"font-famil=
y: arial, sans-serif;">literals.&nbsp;</span><br></div><div><br></div><div>=
<div><font face=3D"courier new, monospace" color=3D"#0000ff">&nbsp; &nbsp; =
using namespace xstd::support_literals;</font></div><div><font face=3D"cour=
ier new, monospace" color=3D"#0000ff"><br></font></div><div><font face=3D"c=
ourier new, monospace" color=3D"#0000ff">&nbsp; &nbsp; auto v =3D std::vect=
or&lt;int&gt; { 98, 03, 11, 14, 17 };</font></div><div><font face=3D"courie=
r new, monospace" color=3D"#0000ff">&nbsp; &nbsp; for (auto i =3D 0z, s =3D=
 v.size(); i &lt; s; ++i)&nbsp;</font></div><div><font face=3D"courier new,=
 monospace" color=3D"#0000ff">&nbsp; &nbsp; &nbsp; &nbsp; std::cout &lt;&lt=
; i &lt;&lt; ": " &lt;&lt; v[i] &lt;&lt; '\n';</font></div></div><div><br><=
/div><div>Live example at: http://coliru.stacked-crooked.com/a/1e0f576e96ab=
8983&nbsp;<br></div><div><br></div></div>

<p></p>

-- <br />
<br />
--- <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_104_806724823.1416491503260--
------=_Part_103_1006900569.1416491503260--

.
