Boost C++ Libraries: Ticket #8402: x64 compiler warning C4244: conversion from 'unsigned __int64' to 'int', possible loss of data https://svn.boost.org/trac10/ticket/8402 <p> I'm using Microsoft Visual Studio 2012 to compile boost 1.52.0 in an x64 project. I use compiter flag /W4. In this situation, some implicit casts in geometry trigger compiler warnings (which we declared errors for our project), because some numeric data types that match in x86 have different widths in x64: </p> <pre class="wiki">\boost_1_52_0\boost\geometry\io\wkt\read.hpp(514): error C4244: 'initializing' : conversion from 'unsigned __int64' to 'int', possible loss of data int n = boost::size(points); </pre><pre class="wiki">\boost_1_52_0\boost\geometry\algorithms\detail\overlay\follow.hpp(395): error C4244: 'argument' : conversion from 'unsigned __int64' to 'int', possible loss of data geometry::copy_segments&lt;false&gt;(linestring, current_segment_id, boost::size(linestring) - 1, current_piece); </pre><p> Maybe it's possible to eliminate those warnings for the next boost version? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8402 Trac 1.4.3 Volker Schöch <vschoech@…> Fri, 05 Apr 2013 15:04:51 GMT <link>https://svn.boost.org/trac10/ticket/8402#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8402#comment:1</guid> <description> <p> Sorry, I mixed the code with the message. Unfortunately I cannot edit the original post, so here are the messages with the correct line breaks: </p> <pre class="wiki">\boost_1_52_0\boost\geometry\io\wkt\read.hpp(514): error C4244: 'initializing' : conversion from 'unsigned __int64' to 'int', possible loss of data int n = boost::size(points); </pre><pre class="wiki">\boost_1_52_0\boost\geometry\algorithms\detail\overlay\follow.hpp(395): error C4244: 'argument' : conversion from 'unsigned __int64' to 'int', possible loss of data geometry::copy_segments&lt;false&gt;(linestring, current_segment_id, boost::size(linestring) - 1, current_piece); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Barend Gehrels</dc:creator> <pubDate>Fri, 05 Apr 2013 21:13:52 GMT</pubDate> <title>type, severity changed https://svn.boost.org/trac10/ticket/8402#comment:2 https://svn.boost.org/trac10/ticket/8402#comment:2 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Support Requests</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> </ul> Ticket awulkiew Fri, 10 Oct 2014 18:48:36 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/8402#comment:3 https://svn.boost.org/trac10/ticket/8402#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> </ul> Ticket Volker Schöch <vschoech@…> Thu, 16 Oct 2014 10:50:23 GMT <link>https://svn.boost.org/trac10/ticket/8402#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8402#comment:4</guid> <description> <p> Please consider related Ticket <a class="new ticket" href="https://svn.boost.org/trac10/ticket/10667" title="#10667: Support Requests: VC++ 2013 compiler warning C4244: 'initializing' : conversion from ... (new)">#10667</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>