Boost C++ Libraries: Ticket #8404: VC++ 2012 compiler warning C4244: 'initializing' : conversion from '__int64' to 'const double' https://svn.boost.org/trac10/ticket/8404 <p> I'm using Microsoft Visual Studio 2012 to compile boost 1.52.0. I use compiler flag /W4. The following warnings (which we declared errors for our project) occur in geometry, regardless whether I'm compiling for x64 or x86. <strong>My scalar data type is int.</strong> </p> <pre class="wiki">\boost_1_52_0\boost\geometry\strategies\cartesian\distance_pythagoras.hpp(156): error C4244: 'initializing' : conversion from '__int64' to 'const double', possible loss of data calculation_type const t = comparable_type::apply(p1, p2); </pre><p> Maybe it's possible to eliminate this warning for the next boost version? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8404 Trac 1.4.3 Volker Schöch <vschoech@…> Fri, 05 Apr 2013 15:07:09 GMT <link>https://svn.boost.org/trac10/ticket/8404#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8404#comment:1</guid> <description> <p> Sorry, I mixed the code with the message. Unfortunately I cannot edit the original post, so here is the message with the correct line break: </p> <pre class="wiki">\boost_1_52_0\boost\geometry\strategies\cartesian\distance_pythagoras.hpp(156): error C4244: 'initializing' : conversion from '__int64' to 'const double', possible loss of data calculation_type const t = comparable_type::apply(p1, p2); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Barend Gehrels</dc:creator> <pubDate>Fri, 05 Apr 2013 21:12:26 GMT</pubDate> <title>type, severity changed https://svn.boost.org/trac10/ticket/8404#comment:2 https://svn.boost.org/trac10/ticket/8404#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 Volker Schöch <vschoech@…> Thu, 04 Jan 2018 14:05:36 GMT <link>https://svn.boost.org/trac10/ticket/8404#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8404#comment:3</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>