Subject: [Boost-bugs] [Boost C++ Libraries] #13188: VS2017 reports typecast error in two_bit_color_map.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-09-01 19:36:23
#13188: VS2017 reports typecast error in two_bit_color_map.hpp
------------------------------+-------------------------------
Reporter: peter.johnson@⦠| Owner: Jeremiah Willcock
Type: Patches | Status: new
Milestone: To Be Determined | Component: graph
Version: Boost 1.65.0 | Severity: Problem
Keywords: |
------------------------------+-------------------------------
line 61 of boost/graph/two_bit_color_map.hpp, final parameter causes an
int32 to unsigned char type conversion warning.
Maybe resolved by changing line 61 to:
std::fill(data.get(), data.get() + (n + elements_per_char - 1) /
elements_per_char, static_cast<unsigned char>(white_color));
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13188> 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-09-01 19:42:49 UTC