Boost C++ Libraries: Ticket #13374: Boykov Kolmogorov warning with float https://svn.boost.org/trac10/ticket/13374 <p> In boykov_kolmogorov_max_flow.hpp, some values put in property_map are integer : </p> <pre class="wiki">l.176 put(m_res_cap_map, from_source, 0); l.190 put(m_dist_map, current_node, 1); l.196 put(m_res_cap_map, to_sink, 0); l.202 put(m_dist_map, current_node, 1); l.208 put(m_res_cap_map, from_source, 0); l.217 put(m_dist_map, current_node, 1); l.228 put(m_dist_map, current_node, 1); </pre><p> It causes a C4244 warning in property_map/property_map.hpp (l.310) when using floating distance and floating cost. An easy way to prevent this is to patch as follow: </p> <pre class="wiki">l.176 put(m_res_cap_map, from_source, tEdgeVal(0)); l.190 put(m_dist_map, current_node, tDistanceVal(1)); l.196 put(m_res_cap_map, to_sink, tEdgeVal(0)); l.202 put(m_dist_map, current_node, tDistanceVal(1)); l.208 put(m_res_cap_map, from_source, 0); l.217 put(m_dist_map, current_node, tDistanceVal(1)); l.228 put(m_dist_map, current_node, tDistanceVal(1)); </pre><p> Compiler: VS2017 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13374 Trac 1.4.3