Re: [Boost-bugs] [Boost C++ Libraries] #8791: successfull compilation depends on header order in Graph

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8791: successfull compilation depends on header order in Graph
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-03 15:25:04


#8791: successfull compilation depends on header order in Graph
------------------------------------+--------------------------------------
  Reporter: karnigen <karnigen@…> | Owner: jewillco
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: graph
   Version: Boost 1.54.0 | Severity: Cosmetic
Resolution: fixed | Keywords: header compilation graph
------------------------------------+--------------------------------------

Comment (by albert.gil@…):

 Sorry, you are right: the {{{-std=c++11}}} didn't solved the problem at
 all!
 It was a false-positive... I missed to report it here.

 My final workaround (after trying my best) was to not calling the
 main/public {{{edmonds_karp_max_flow}}} function:
 {{{
 float64 flow = boost::edmonds_karp_max_flow( graph,
                                              source,
                                              sink,
                                              boost::capacity_map (
 get(&Graph::EdgePropertiesType::capacity ,graph)).
                                                residual_capacity_map(
 get(&Graph::EdgePropertiesType::residual_capacity,graph)).
                                                reverse_edge_map (
 get(&Graph::EdgePropertiesType::reverse_edge ,graph)).
                                                color_map (
 get(&Graph::NodePropertiesType::color ,graph)));
 }}}

 But calling the "internal" funtion with more parameters:
 {{{
 float64 flow = boost::edmonds_karp_max_flow( graph,
                                              source,
                                              sink,
 get(&Graph::EdgePropertiesType::capacity, graph),
 get(&Graph::EdgePropertiesType::residual_capacity, graph),
 get(&Graph::EdgePropertiesType::reverse_edge, graph),
 get(&Graph::NodePropertiesType::color, graph),
 get(&Graph::NodePropertiesType::predecessor, graph));
 }}}

 Not sure why, but it worked...?


 Albert

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8791#comment:5>
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:18 UTC