Boost C++ Libraries: Ticket #6562: boost::lexical_cast works for "nan" but throws an error for "NaN" https://svn.boost.org/trac10/ticket/6562 <p> using 1.48 version of lexical_cast works for "nan" but throws an error for "NaN". I do not think there is a formal specification for Not-A-Number in string form, but "NaN" is a common usage form. </p> <p> I have not checked for other variations such as Inf, +Inf, or -Inf which also are common variations </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6562 Trac 1.4.3 anonymous Tue, 21 Feb 2012 22:17:19 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6562#comment:1 https://svn.boost.org/trac10/ticket/6562#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Antony Polukhin</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">lexical_cast</span> </li> </ul> Ticket Antony Polukhin Thu, 24 May 2012 17:05:33 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/6562#comment:2 https://svn.boost.org/trac10/ticket/6562#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/77039" title="FIx #5689 (issue from 5th comment)">r77039</a> (See <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5689" title="#5689: Support Requests: lexical_cast must understand &#34;inf&#34; and &#34;nan&#34; (closed: fixed)">#5689</a>) </p> Ticket