Boost logo

Geometry :

Subject: [geometry] x64 compiler warnings in geometry 1.52.0
From: Volker Schöch (vschoech_at_[hidden])
Date: 2013-03-28 09:24:16


I'm using VS 2012 to compile boost 1.52.0 in an x64 project. 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?

Volker Schöch | vschoech_at_[hidden]
Senior Software Engineer
think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany | 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