Boost C++ Libraries: Ticket #10490: boost::geometry::difference produces a "possible loss of data" warning in MSVC https://svn.boost.org/trac10/ticket/10490 <p> Using the boost::geometry::difference function causes MSVC to emit the warning: </p> <pre class="wiki">c:\boost\include\boost-1_56\boost\geometry\algorithms\detail\sections\sectionalize.hpp(612): warning C4244: 'initializing' : conversion from 'double' to 'const coordinate_type', possible loss of data </pre><p> (full compiler output is attached) </p> <p> This is reproducible using the sample from the <a href="http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/algorithms/difference.html">docs</a>. </p> <p> Versions of boost prior to 1.56 do not exhibit the problem. </p> <p> This was reproduced using Visual Studio 2010 and 2013. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10490 Trac 1.4.3 anonymous Thu, 11 Sep 2014 01:26:30 GMT attachment set https://svn.boost.org/trac10/ticket/10490 https://svn.boost.org/trac10/ticket/10490 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Output-Build_boostGeomDifferenceWarning.txt</span> </li> </ul> <p> Compiler output showing warning. </p> Ticket