Modify

Ticket #8791 (closed Bugs: fixed)

Opened 10 months ago

Last modified 10 months ago

successfull compilation depends on header order in Graph

Reported by: karnigen <karnigen@…> Owned by: jewillco
Milestone: To Be Determined Component: graph
Version: Boost 1.54.0 Severity: Cosmetic
Keywords: header compilation graph Cc:

Description

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:
g++ -std=c++0x -Iboost/include -frounding-math -O2 x.cpp -o x.exe

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

int main(int, char *[]) {

using namespace boost;
typedef adjacency_list < listS, vecS, directedS > G;
G g;
add_edge(0,1, g);
adjacency_list <> tc;
transitive_closure(g, tc);
print_graph(tc);
return 0;

}

Attachments

x.cpp Download (478 bytes) - added by karnigen <karnigen@…> 10 months ago.

Change History

Changed 10 months ago by karnigen <karnigen@…>

comment:1 Changed 10 months ago by jewillco

  • Status changed from new to closed
  • Resolution set to fixed

(In [84976]) Changed to use adjacency_list for temporary graph, avoiding ADL issues with vector_as_graph; fixes #8791

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.