Boost C++ Libraries: Ticket #13597: VC++ 15 compiler warning C4244: 'argument': conversion from 'const coordinate_type' to 'const int', possible loss of data
https://svn.boost.org/trac10/ticket/13597
<p>
I'm using Microsoft Visual Studio 15.6.0 to compile boost 1.67.0. I use compiler flag /W4 and compile for x64 platform. The following warnings (which we declared an error for our project) occur in geometry:
</p>
<p>
<strong>\boost_1_67_0\boost\geometry\algorithms\detail\expand\point.hpp(73): error C4244: 'argument': conversion from 'const coordinate_type' to 'const int', possible loss of data</strong>
</p>
<p>
<strong>\boost_1_67_0\boost\geometry\strategies\cartesian\side_by_triangle.hpp(114): error C4244: 'initializing': conversion from 'coordinate_type' to 'const promoted_type', possible loss of data</strong>
</p>
<p>
<strong>\boost_1_67_0\boost\geometry\algorithms\detail\equals\collect_vectors.hpp(91): error C4244: 'initializing': conversion from '<span class="underline">int64' to 'double', possible loss of data</span></strong><span class="underline">
</span></p>
<p>
<strong>\boost_1_67_0\boost\geometry\strategies\cartesian\intersection.hpp(159): error C4244: 'return': conversion from '<span class="underline">int64' to 'double', possible loss of data</span></strong><span class="underline">
</span></p>
<p>
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>
en-usBoost C++ Libraries/htdocs/site/boost.png
https://svn.boost.org/trac10/ticket/13597
Trac 1.4.3Volker Schöch <vschoech@…>Wed, 13 Jun 2018 13:35:13 GMTsummary changed
https://svn.boost.org/trac10/ticket/13597#comment:1
https://svn.boost.org/trac10/ticket/13597#comment:1
<ul>
<li><strong>summary</strong>
<span class="trac-field-old">VC++ 15 compiler warning C4244: 'argument': conversion from 'const coordinate_type' to 'const int', possible loss of data**</span> → <span class="trac-field-new">VC++ 15 compiler warning C4244: 'argument': conversion from 'const coordinate_type' to 'const int', possible loss of data</span>
</li>
</ul>
TicketVolker Schöch <vschoech@…>Thu, 14 Jun 2018 09:42:23 GMT
<link>https://svn.boost.org/trac10/ticket/13597#comment:2 </link>
<guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13597#comment:2</guid>
<description>
<p>
Please see related ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/13604" title="#13604: Bugs: Clang warning: Implicit conversion loses integer precision (closed: duplicate)">#13604</a>.
</p>
</description>
<category>Ticket</category>
</item>
</channel>
</rss>