[Boost-bugs] [Boost C++ Libraries] #8404: VC++ 2012 compiler warning C4244: 'initializing' : conversion from '__int64' to 'const double'

Subject: [Boost-bugs] [Boost C++ Libraries] #8404: VC++ 2012 compiler warning C4244: 'initializing' : conversion from '__int64' to 'const double'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-05 14:58:07


#8404: VC++ 2012 compiler warning C4244: 'initializing' : conversion from
'__int64' to 'const double'
-----------------------------------------------------------------------------------------------------+
 Reporter: Volker Schöch <vschoech@…> | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: VC++ 2012, warning, C4244, 'initializing' : conversion from '__int64' to 'const double' |
-----------------------------------------------------------------------------------------------------+
 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. '''My scalar data type is int.'''
 {{{
 \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);
 }}}
 Maybe it's possible to eliminate this warning for the next boost version?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8404>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC