[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Random questions
From: |
John W. Eaton |
Subject: |
Re: Random questions |
Date: |
Thu, 20 Dec 2012 15:38:10 -0500 |
On 20-Dec-2012, Júlio Hoffimann wrote:
| In fact, i would replace the entire single_num() function by either a try/
| catch block with boost::lexical_cast<double> which is more robust and faster
| (see http://www.boost.org/doc/libs/1_52_0/doc/html/boost_lexical_cast/
| performance.html for performance considerations) or be conservative and use
| std::strtod() (http://en.cppreference.com/w/cpp/string/byte/strtof)
Sorry, but adding boost as a dependency for a single function is not
going to happen.
jwe
- Random questions, Júlio Hoffimann, 2012/12/19
- Random questions, John W. Eaton, 2012/12/20
- Re: Random questions, Júlio Hoffimann, 2012/12/20
- Re: Random questions, John W. Eaton, 2012/12/20
- Re: Random questions, Júlio Hoffimann, 2012/12/20
- Re: Random questions,
John W. Eaton <=
- Re: Random questions, John W. Eaton, 2012/12/20
- Re: Random questions, Júlio Hoffimann, 2012/12/26
- Re: Random questions, Daniel J Sebald, 2012/12/26
- Re: Random questions, Júlio Hoffimann, 2012/12/26
- Re: Random questions, Daniel J Sebald, 2012/12/26
- Re: Random questions, Michael Goffioul, 2012/12/20