Opened 9 years ago

Closed 9 years ago

#9659 closed Bugs (fixed)

lexical_cast<bool> not functioning properly

Reported by: tclarke@… Owned by: Antony Polukhin
Milestone: Boost 1.56.0 Component: lexical_cast
Version: Boost 1.47.0 Severity: Regression
Keywords: Cc:

Description

commit dc9b364d6f3033712a93cae14d15ca3736dd39da (from boost 1.47.0) changed the behavior of boost::lexical_cast<bool>("00"). Prior, this string (and any number of 0's in a row) would successfully cast to false. Starting with that commit, the conversion will throw boost::bad_lexical_cast.

Change History (2)

comment:1 by Antony Polukhin, 9 years ago

Milestone: To Be DeterminedBoost 1.56.0
Status: newassigned

Initial fix for that issue was committed to GIT's develop branch.

comment:2 by Antony Polukhin, 9 years ago

Resolution: fixed
Status: assignedclosed

Fix merged to master branch.

Note: See TracTickets for help on using tickets.