-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Works fine with c++11, thanks! System: (K)Ubuntu 16.04 LTS Compiler: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 Try to 'g++ -c' the four SGB examples girth.cpp, miles_span.cpp, roget_components.cpp, and topo-sort-with-sgb.cpp. (1) SGB 2002-01-30 changed the 'Associated Press scores' from 'ap0' and 'ap1' to 'ap'. This preprocessor macro (sic!) collides with numerous function parameters in 'named_function_params.hpp'. '#undef'ining the macro doesn't break the BGL examples. (2) girth.cpp fails because of a missing 'null_vertex()' function. (3) roget_components.cpp invokes 'strncmp()' from the C library. (4) topo-sort-with-sgb.cpp hickups because of a missing 'vertices()' function. Following roget_components.cpp and putting the collective SGB header up front fixes this.
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters