Opened 8 years ago
Last modified 5 years ago
#10667 new Support Requests
VC++ 2013 compiler warning C4244: 'initializing' : conversion from 'double' to 'const coordinate_type', possible loss of data
Reported by: | 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 by , 8 years ago
Component: | None → geometry |
---|---|
Owner: | set to |
comment:2 by , 8 years ago
Version: | Boost 1.56.0 → Boost 1.57.0 |
---|
comment:3 by , 5 years ago
Keywords: | VC++ 2013 removed |
---|---|
Version: | Boost 1.57.0 → Boost 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.
This warning is still present in 1.57.0.