Modify

Opened 5 years ago

Last modified 7 months ago

#8404 new Support Requests

VC++ 2012 compiler warning C4244: 'initializing' : conversion from '__int64' to 'const double'

Reported by: Volker Schöch <vschoech@…> Owned by: Barend Gehrels
Milestone: To Be Determined Component: geometry
Version: Boost 1.52.0 Severity: Cosmetic
Keywords: VC++ 2012, warning, C4244, 'initializing' : conversion from '__int64' to 'const double' Cc:

Description

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?

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Volker Schöch <vschoech@…>

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:

\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);

comment:2 Changed 5 years ago by Barend Gehrels

Severity: ProblemCosmetic
Type: BugsSupport Requests

comment:3 Changed 7 months ago by Volker Schöch <vschoech@…>

Please consider related ticket #10667.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Barend Gehrels.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.