Opened 4 years ago

Last modified 13 months ago

#10667 new Support Requests

VC++ 2013 compiler warning C4244: 'initializing' : conversion from 'double' to 'const coordinate_type', possible loss of data

Reported by: Volker Schöch <vschoech@…> Owned by: Barend Gehrels
Milestone: To Be Determined Component: geometry
Version: Boost 1.66.0 Severity: Problem
Keywords: warning, C4244 Cc:

Description

I'm using Microsoft Visual Studio 12 (2013) to compile boost 1.56.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:

\boost_1_56_0\boost\geometry\algorithms\detail\sections\sectionalize.hpp(612): warning C4244: 'initializing' : conversion from 'double' to 'const coordinate_type', possible loss of data

Please consider related Ticket #8402.

Change History (3)

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

Component: Nonegeometry
Owner: set to Barend Gehrels

comment:2 Changed 4 years ago by Volker Schöch <vschoech@…>

Version: Boost 1.56.0Boost 1.57.0

This warning is still present in 1.57.0.

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

Keywords: VC++ 2013 removed
Version: Boost 1.57.0Boost 1.66.0

This warning still occurs with boost 1.66.0 and VC++ 14.12.25827. In my case, the first occurrence is the following:

\boost_1_66_0\boost\geometry\strategies\cartesian\side_by_triangle.hpp(114): warning C4244: 'initializing': conversion from 'coordinate_type' to 'promoted_type', possible loss of data
Note: See TracTickets for help on using tickets.