octave-maintainers
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]