220 17961 <CAA7U3HOOX0EdvSEjwWt8th7ymAA_e4tJdfK_ybCCWu1BQ6ktuA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Olaf van der Spek <olafvdspek@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Parsing Numbers
Date: Tue, 19 May 2015 00:17:08 +0200
Lines: 28
Approved: news@gmane.org
Message-ID: <CAA7U3HOOX0EdvSEjwWt8th7ymAA_e4tJdfK_ybCCWu1BQ6ktuA@mail.gmail.com>
References: <eb5c19d6-074f-4ee4-8e2d-6d92349eb4be@isocpp.org>
	<555A54B8.8000007@gmx.net>
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 1431987442 18121 80.91.229.3 (18 May 2015 22:17:22 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 18 May 2015 22:17:22 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5NB45SSABBBZOJ5GVAKGQERCKA72Q@isocpp.org Tue May 19 00:17:10 2015
Return-path: <std-proposals+bncBC5NB45SSABBBZOJ5GVAKGQERCKA72Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5NB45SSABBBZOJ5GVAKGQERCKA72Q@isocpp.org>)
	id 1YuTLS-0001fB-Ct
	for gclcip-std-proposals@m.gmane.org; Tue, 19 May 2015 00:17:10 +0200
Original-Received: by wiz9 with SMTP id 9sf69816wiz.3
        for <gclcip-std-proposals@m.gmane.org>; Mon, 18 May 2015 15:17:09 -0700 (PDT)
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:content-type: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=9ypGX/wJkdZ6wvjMxKam6uggRmiRbNA8W1oMP1nzO0Q=;
        b=SK/YB+P7BS34uOtrleI7npg76I/lorWGztspaLyZtyPOKP/PPTfdNgsT3d3rNMCuyN
         LfV1SJMIPIilr9o3OpSoe0NEpFwQx4eWPj0rIyBKltVPFBXfT0DaBFRefOInXdMKEa8a
         QRhtyCroUsFbNmuJzUljJirwKHQXXCjchj38tygF3Ls7iwh1r5rzvJcHAzRj4nrZd3n6
         FePxEr7L1WDYJuRD95UUgZAQzx9K/XXp+RbgxEmqsQcTJ2XV5/k5rrSMbb//Ept3Urbz
         UBxst8D2mH29ZwwFnZPvCFmDAvEEaosLNf+gDLoIpK6XGqZV+ttEZ2gcNOlRRpUnz5AY
         u3RQ==
X-Gm-Message-State: ALoCoQk/J6E03945udByQ4cjqjRAzi2aXYMxOsOaYAblUbF7SV2/JOeNlFiVs7Y7IeZdJHtAa3sp
X-Received: by 10.152.37.101 with SMTP id x5mr19412114laj.5.1431987429700;
        Mon, 18 May 2015 15:17:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.109.226 with SMTP id hv2ls488971wib.44.canary; Mon, 18 May
 2015 15:17:08 -0700 (PDT)
X-Received: by 10.180.101.105 with SMTP id ff9mr25567792wib.64.1431987428772;
        Mon, 18 May 2015 15:17:08 -0700 (PDT)
Original-Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com. [2a00:1450:400c:c05::22c])
        by mx.google.com with ESMTPS id t1si13431544wjx.99.2015.05.18.15.17.08
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 18 May 2015 15:17:08 -0700 (PDT)
Received-SPF: pass (google.com: domain of olafvdspek@gmail.com designates 2a00:1450:400c:c05::22c as permitted sender) client-ip=2a00:1450:400c:c05::22c;
Original-Received: by wicmx19 with SMTP id mx19so98418541wic.0
        for <std-proposals@isocpp.org>; Mon, 18 May 2015 15:17:08 -0700 (PDT)
X-Received: by 10.194.90.100 with SMTP id bv4mr46935729wjb.143.1431987428707;
 Mon, 18 May 2015 15:17:08 -0700 (PDT)
Original-Received: by 10.28.59.134 with HTTP; Mon, 18 May 2015 15:17:08 -0700 (PDT)
In-Reply-To: <555A54B8.8000007@gmx.net>
X-Original-Sender: olafvdspek@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of olafvdspek@gmail.com designates 2a00:1450:400c:c05::22c as
 permitted sender) smtp.mail=olafvdspek@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=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: <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:17961
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/17961>

2015-05-18 23:08 GMT+02:00 Jens Maurer <Jens.Maurer@gmx.net>:
> On 05/18/2015 08:34 PM, Olaf van der Spek wrote:
>> So, what about this one?
>>
>> optional<T> parse(string_view, std::size_t* pos = 0, int base = 10);
>>
>> An alternative could be:
>>
>> error_code parse(T&, string_view, std::size_t* pos = 0, int base = 10);
>
> I would appreciate if there would be a compile-time choice for base 2,
> base 8, base 10, base 16, not (only) a facility with a runtime parameter.

Why? Performance?
Shouldn't the compiler take care of that?


-- 
Olaf

-- 

--- 
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/.

.
