Subject: [Boost-bugs] [Boost C++ Libraries] #10490: boost::geometry::difference produces a "possible loss of data" warning in MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-11 01:24:28
#10490: boost::geometry::difference produces a "possible loss of data" warning in
MSVC
------------------------------+---------------------------
Reporter: anonymous | Owner: barendgehrels
Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.56.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
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
[http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/algorithms/difference.html
docs].
Versions of boost prior to 1.56 do not exhibit the problem.
This was reproduced using Visual Studio 2010 and 2013.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10490> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC