Note: Also posted on boost-user mailing list some days ago.
Intel engineers might want to have a look at this: The sample program (below) using boost::lexical_cast (boost verstion 1.46.1) raises an unknown exception (second catch handler is entered) when optimizations are enabled. The problematic option is /O - in all cases except of /Od [all
optimizations disabled] the exception is raised. To the best of my knowledge the code snippet should work fine, and it does work fine using other windows compilers (MSVC, MinGW), but behaves exceptional (literally) when compiled with Intel 188.8.131.52 embedded into MSVC 2005. I don't know if this is an Intel or boost issue - or eventually even some error my side ?? Full command line options and snippet below.