220 17976 <1780727.kr58duAf8b@tjmaciei-mobl4> article
Path: news.gmane.org!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Parsing Numbers
Date: Mon, 18 May 2015 23:55:36 -0700
Lines: 24
Approved: news@gmane.org
Message-ID: <1780727.kr58duAf8b@tjmaciei-mobl4>
References: <eb5c19d6-074f-4ee4-8e2d-6d92349eb4be@isocpp.org> <d45be8a9-0378-4c83-ad8c-b416af2503da@isocpp.org>
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 1432018547 25691 80.91.229.3 (19 May 2015 06:55:47 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 19 May 2015 06:55:47 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRB3F45OVAKGQERI2U5TQ@isocpp.org Tue May 19 08:55:41 2015
Return-path: <std-proposals+bncBCB4TK757YBRB3F45OVAKGQERI2U5TQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f197.google.com ([209.85.212.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCB4TK757YBRB3F45OVAKGQERI2U5TQ@isocpp.org>)
	id 1YubRF-0006mx-E6
	for gclcip-std-proposals@m.gmane.org; Tue, 19 May 2015 08:55:41 +0200
Original-Received: by wivs14 with SMTP id s14sf3410795wiv.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 18 May 2015 23:55:41 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:to:subject:date:message-id:user-agent
         :in-reply-to:references:mime-version: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=YCpMhKdbG4dvYJrd7Q7ya2nHzhKEOhKmAPlmp78+c4g=;
        b=kAwYIC9INwZ+ckQutcLoXtsI+t3wVwBbDDurB8bk3pIicjfWDhQkMP4z0l2TD9aFtu
         ORTZevc/pVDXIrA49bJAl+RqnP/qeQVbRmebwxLye2In8JLB4/G1uNEssS8OB1UxyGjm
         yvq9vj6etUtTkdG+2IR8Sh8yi0WF04L0JVzLM9gsoy5lxacRO+LwBWCqzfUUoSh3X8Cm
         0r5aTsx+ILWLNtZSku/qQm81qjGhAcHFkvjC7hn+uCEPH1fQuQUvNn+g2Z6AHeEkojVR
         b4y9k/ZsCXwbFYnuGsK+Sxak08Io5MEELjnCsOFbdax2kR79B0Y0+CW4mf2nlSycd+1K
         l4rQ==
X-Gm-Message-State: ALoCoQlK9LhAP3hiraPzCQIKvRwzhI6qzmRaC+TpJdevgXQJrjMSr9N83eNaIFc+1wZUB94AVz5r
X-Received: by 10.180.106.10 with SMTP id gq10mr12947663wib.0.1432018540973;
        Mon, 18 May 2015 23:55:40 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.74.106 with SMTP id s10ls58432wiv.4.gmail; Mon, 18 May
 2015 23:55:40 -0700 (PDT)
X-Received: by 10.181.27.131 with SMTP id jg3mr4215775wid.89.1432018540125;
        Mon, 18 May 2015 23:55:40 -0700 (PDT)
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id w13si17118300wjq.111.2015.05.18.23.55.40
        for <std-proposals@isocpp.org>;
        Mon, 18 May 2015 23:55:40 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl4.localnet (unknown [IPv6:2601:7:1c80:4ea:2102:b072:ec11:c415])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 93E5711A755
	for <std-proposals@isocpp.org>; Mon, 18 May 2015 23:55:39 -0700 (PDT)
User-Agent: KMail/4.14.6 (Linux/4.0.0-1-desktop; KDE/4.14.6; x86_64; ; )
In-Reply-To: <d45be8a9-0378-4c83-ad8c-b416af2503da@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mail=thiago@macieira.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:17976
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/17976>

On Monday 18 May 2015 14:19:19 Matthew Fioravante wrote:
> We may also want to think generically. Can clients easily implement 
> efficient std::parse<T> routines for their own user defined types?

I don't think so.

Integer parsing may be acceptable, but it's borderline already -- the FreeBSD 
implementations of strtoull and strtoll are around 60 lines of C code, the 
glibc implementation is 300 lines and supports parsing of locale-specified 
number grouping. But floating point parsing can't reasonably be done inline.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-- 

--- 
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/.

.
