#8402 closed Support Requests (fixed)
x64 compiler warning C4244: conversion from 'unsigned __int64' to 'int', possible loss of data
Reported by: | Owned by: | Barend Gehrels | |
---|---|---|---|
Milestone: | Boost 1.57.0 | Component: | geometry |
Version: | Boost 1.52.0 | Severity: | Cosmetic |
Keywords: | x64, VC++ 2012, warning, C4244, conversion from 'unsigned __int64' to 'int' | Cc: |
Description
I'm using Microsoft Visual Studio 2012 to compile boost 1.52.0 in an x64 project. I use compiter flag /W4. In this situation, some implicit casts in geometry trigger compiler warnings (which we declared errors for our project), because some numeric data types that match in x86 have different widths in x64:
\boost_1_52_0\boost\geometry\io\wkt\read.hpp(514): error C4244: 'initializing' : conversion from 'unsigned __int64' to 'int', possible loss of data int n = boost::size(points);
\boost_1_52_0\boost\geometry\algorithms\detail\overlay\follow.hpp(395): error C4244: 'argument' : conversion from 'unsigned __int64' to 'int', possible loss of data geometry::copy_segments<false>(linestring, current_segment_id, boost::size(linestring) - 1, current_piece);
Maybe it's possible to eliminate those warnings for the next boost version?
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Severity: | Problem → Cosmetic |
---|---|
Type: | Bugs → Support Requests |
comment:3 by , 8 years ago
Milestone: | To Be Determined → Boost 1.57.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Sorry, I mixed the code with the message. Unfortunately I cannot edit the original post, so here are the messages with the correct line breaks: