id summary reporter owner description type status milestone component version severity resolution keywords cc 7661 lexical_cast throws exception when strings have more than one null terminators pengxu7@… Antony Polukhin "Hello, I got following exception while using boost 1.52.0: "" terminate called after throwing an instance of 'boost::bad_lexical_cast' what(): bad lexical cast: source type value could not be interpreted as target "" Here's the sample code: "" #include #include int main( int argc, char** argv ) { std::string m = ""0""; m += '\0'; int i = boost::lexical_cast( m ); std::cout << ""Got number "" << i << std::endl; } "" Thanks, Peng" Bugs closed To Be Determined lexical_cast Boost 1.52.0 Problem invalid