id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1638,allow lexical_cast to handle based number strings,Steven Robbins ,nasonov,"This report comes from Debian user ""Wesley J. Landaker"" See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412931 Please allow lexical_cast to handle based number strings. Currently, it only supports decimal strings, but it should be able to handle octal and hexadecimal strings if they have correct prefix notations. Background: This happens because lexical_cast constructs a stringstream, which by default has the ios_base::dec flag set. If this flag is unset, it will still read decimal strings, but will also automatically determine the base by looking at the prefix, so will read decimal strings if the number starts with 0-9, octal if it starts with 0, and hex if it starts with 0x. Fix: After constructing the stringstream, simply call stringstring::unsetf(std::ios_base::basefield). Because decimal numbers are still handled correctly, this is totally backwards compatible. ",Feature Requests,closed,Boost 1.36.0,lexical_cast,Boost 1.34.1,Problem,invalid,,