220 17982 <mjfi4f$aa9$1@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Woehlke <mw_triad@users.sourceforge.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Parsing Numbers
Date: Tue, 19 May 2015 10:42:23 -0400
Lines: 31
Approved: news@gmane.org
Message-ID: <mjfi4f$aa9$1@ger.gmane.org>
References: <eb5c19d6-074f-4ee4-8e2d-6d92349eb4be@isocpp.org> <mjdm7t$4vm$1@ger.gmane.org> <CANh-dXnGCpOsj58a2KgSEE62j9fVQ3P6y=4=iohDnN_ZdXWeDQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1432046568 14917 80.91.229.3 (19 May 2015 14:42:48 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 19 May 2015 14:42:48 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCO5FYHBU4ERBXUX5WVAKGQELEU4MMQ@isocpp.org Tue May 19 16:42:40 2015
Return-path: <std-proposals+bncBCO5FYHBU4ERBXUX5WVAKGQELEU4MMQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f198.google.com ([209.85.212.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCO5FYHBU4ERBXUX5WVAKGQELEU4MMQ@isocpp.org>)
	id 1YuijA-000598-5A
	for gclcip-std-proposals@m.gmane.org; Tue, 19 May 2015 16:42:40 +0200
Original-Received: by wivs14 with SMTP id s14sf8539624wiv.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 19 May 2015 07:42:39 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:content-type:user-agent:in-reply-to: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=JqrjywZCoUMmfF9hXbMfCzY35wsonBDjOc9nUbyHYpc=;
        b=KyYRlbOpWz/iufBnA/qVWwldRFYD7bzmkx2P7iyQWHvc/k3wSu8v55mrGsO2buXEkm
         55GHx1OQxTIawev8Aphu28SNULwGOcynXm8pMQFYH5pmScaZv6Z0+PyyMfXVOaQBXkp8
         Wd+wS2O1rmRhAnQANAfd25FNWjnHn1V5s2Ck2dFRJ0cPyBRsur9VST9VQl5sY2m63RXi
         UyirHi9hAfj8a7AaOtH2dXzr12vii20VuDuiD9XPR70Oz1Fq2U2tFjVrGP5v97/PsPR0
         vNOiBy7S056WK9CxIq+52lYv2UkPnRGASygkem1fUofNPMFFqSjr0dQXVSDhPdogzF9i
         fvaQ==
X-Gm-Message-State: ALoCoQkMONLItKv6TpXRXvEchd2tYxgoqrFEEg2Xk7jUUhJ5qsbcZbtTboJzSyvHLI+A5VUpWOQ4
X-Received: by 10.194.5.229 with SMTP id v5mr22212290wjv.0.1432046559477;
        Tue, 19 May 2015 07:42:39 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.4.73 with SMTP id i9ls69670lai.100.gmail; Tue, 19 May 2015
 07:42:37 -0700 (PDT)
X-Received: by 10.112.210.103 with SMTP id mt7mr21548029lbc.27.1432046557545;
        Tue, 19 May 2015 07:42:37 -0700 (PDT)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id kp20si9127129lbb.109.2015.05.19.07.42.37
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Tue, 19 May 2015 07:42:37 -0700 (PDT)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1Yuij5-000585-S8
	for std-proposals@isocpp.org; Tue, 19 May 2015 16:42:36 +0200
Original-Received: from tripoint.kitware.com ([66.194.253.20])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 19 May 2015 16:42:35 +0200
Original-Received: from mw_triad by tripoint.kitware.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 19 May 2015 16:42:35 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 22
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: tripoint.kitware.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
In-Reply-To: <CANh-dXnGCpOsj58a2KgSEE62j9fVQ3P6y=4=iohDnN_ZdXWeDQ@mail.gmail.com>
X-Original-Sender: mw_triad@users.sourceforge.net
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) smtp.mail=gclcip-std-proposals@m.gmane.org
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:17982
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/17982>

On 2015-05-18 18:09, 'Jeffrey Yasskin' via ISO C++ Standard - Future
Proposals wrote:
> On Mon, May 18, 2015 at 2:40 PM, Matthew Woehlke wrote:
>> Actually, I agree with the other Matthew Fioravante's suggestion of
>> mutating the input string_view / iterators. (Maybe we should just
>> support this like 'parse(in, &in)' and making sure that is efficient.)
> 
> This one gathered an objection at
> https://groups.google.com/a/isocpp.org/d/msg/std-proposals/Hs1s2329FCo/dl9N2GnXfxQJ,
> that the potential aliasing between the const char* and the
> string_view itself can cause problems.

That sounds like a QOI issue. It also sounds like something that vendors
should be able to fix / work around.

> I suspect any problems can be fixed with a careful implementation,

Yes. Don't modern compilers have a way to tell the compiler to assume
that two entities do not alias?

-- 
Matthew

-- 

--- 
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/.

.
