Opened 8 years ago

#10490 new Bugs

boost::geometry::difference produces a "possible loss of data" warning in MSVC

Reported by: anonymous Owned by: Barend Gehrels
Milestone: To Be Determined Component: geometry
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

Using the boost::geometry::difference function causes MSVC to emit the warning:

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

(full compiler output is attached)

This is reproducible using the sample from the docs.

Versions of boost prior to 1.56 do not exhibit the problem.

This was reproduced using Visual Studio 2010 and 2013.

Attachments (1)

Output-Build_boostGeomDifferenceWarning.txt (29.0 KB ) - added by anonymous 8 years ago.
Compiler output showing warning.

Download all attachments as: .zip

Change History (1)

by anonymous, 8 years ago

Compiler output showing warning.

Note: See TracTickets for help on using tickets.