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

Subject: [Boost-bugs] [Boost C++ Libraries] #8791: successfull compilation depends on header order in Graph
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-07 11:41:59


#8791: successfull compilation depends on header order in Graph
--------------------------------------+----------------------
 Reporter: karnigen <karnigen@…> | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.54.0 | Severity: Cosmetic
 Keywords: header compilation graph |
--------------------------------------+----------------------
 From time to time program cannot be compiled due to incorrect order of
 headers. It always takes some time to resolve correct order of headers.
 I found also very simple example, see attachment. Example does not compile
 until
 transitive_closure.hpp is moved up.

 // compiled on Linux 64:[[BR]]
 // g++ -std=c++0x -Iboost/include -frounding-math -O2 x.cpp -o x.exe[[BR]]

 #include <boost/graph/adjacency_list.hpp>[[BR]]
 #include <boost/graph/graph_utility.hpp>[[BR]]
 #include <boost/graph/transitive_closure.hpp> // must be on top[[BR]]

 int main(int, char *[]) {[[BR]]
   using namespace boost;[[BR]]
   typedef adjacency_list < listS, vecS, directedS > G;[[BR]]
   G g;[[BR]]
   add_edge(0,1, g);[[BR]]
   adjacency_list <> tc;[[BR]]
   transitive_closure(g, tc);[[BR]]
   print_graph(tc);[[BR]]
   return 0;[[BR]]
 }[[BR]]

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