Opened 11 years ago

Closed 10 years ago

#6562 closed Bugs (fixed)

boost::lexical_cast works for "nan" but throws an error for "NaN"

Reported by: anonymous Owned by: Antony Polukhin
Milestone: Boost 1.50.0 Component: lexical_cast
Version: Boost 1.48.0 Severity: Problem
Keywords: lexical_cast Cc:

Description

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.

I have not checked for other variations such as Inf, +Inf, or -Inf which also are common variations

Change History (2)

comment:1 by anonymous, 11 years ago

Component: Nonelexical_cast
Owner: set to Antony Polukhin

comment:2 by Antony Polukhin, 10 years ago

Milestone: To Be DeterminedBoost 1.50.0
Resolution: fixed
Status: newclosed

Fixed in r77039 (See #5689)

Note: See TracTickets for help on using tickets.