id summary reporter owner description type status milestone component version severity resolution keywords cc 11842 "VC 2005 warning ""conversion from '__w64 int' to streamsize"" when lexical_cast from string to double." l_ting@… Antony Polukhin "Symptom: When cast to double as follows: double d = boost::lexical_cast(""123.4"");; boost 1.59.0 has the following warning when compile on Visual studio 2005 platform under Unicode. 1>c:\boost-v1.59.0\include\boost-1_59\boost\lexical_cast\detail\converter_lexical_streams.hpp(587) : warning C4244: 'argument' : conversion from '__w64 int' to 'boost::detail::basic_pointerbuf::streamsize', possible loss of data Fix: Change line 586@ boost\lexical_cast\detail\converter_lexical_streams.hpp From: buf.setbuf(const_cast(start), finish - start); To: buf.setbuf(const_cast(start), static_cast(finish - start)); Please review. Thanks Ting " Bugs closed Boost 1.64.0 lexical_cast Boost 1.59.0 Problem fixed