Boost C++ Libraries: Ticket #12700: Returned type mess with find_flow_cost https://svn.boost.org/trac10/ticket/12700 <p> There are several overloads for find_flow_cost in find_flow_cost.hpp. However they differ by the return type. For example find_flow_cost(const Graph &amp;g) returns edge capacity type while others return weight type. As a result the true flow cost can be lost due to type conversions, e.g. casting double (weight type) to int (capacity type). </p> <p> It should be determined which type to return (weight or capacity type). I think there should be a process determining which type is the best. Something like decltype(weight_t(0)*capacity_t(0)) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12700 Trac 1.4.3