Boost logo

Geometry :

Subject: [geometry] "C4244: 'initializing' : conversion from '__int64' to 'const double', possible loss of data" compiler warning in geometry 1.52.0
From: Volker Schöch (vschoech_at_[hidden])
Date: 2013-03-28 09:33:41


Hi,
I'm using VS 2012 to compile boost 1.52.0. The following warning occurs 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?
Thanks!
   Volker

--
Volker Schöch | vschoech_at_[hidden]
Senior Software Engineer
think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany
http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091
Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl

Geometry list run by mateusz at loskot.net