[Boost-bugs] [Boost C++ Libraries] #12186: Inclusion order for labeled_graph

Subject: [Boost-bugs] [Boost C++ Libraries] #12186: Inclusion order for labeled_graph
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-10 08:04:59


#12186: Inclusion order for labeled_graph
---------------------------------+----------------------
 Reporter: scott_paulin@… | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: compilation failure |
---------------------------------+----------------------
 Hi,

 It looks like the labeled_graph header has some unmet dependencies. If
 labeled_graph is the first boost graph include compilation will fail. If
 it is not the first (e.g. after adjacency_list) compilation suceeds. I am
 using boost 1.54. Sorry I have no idea if this has been fixed in later
 versions.


 Ex. 1 compilation fails
 {{{
 #include "boost/graph/labeled_graph.hpp"
 #include "boost/graph/adjacency_list.hpp"
 int main(int,char*[])
 {
 }
 }}}



 Ex. 2 compilation succeeds with include order swapped.



 {{{
 #include "boost/graph/adjacency_list.hpp"
 #include "boost/graph/labeled_graph.hpp"
 int main(int,char*[])
 {
 }
 }}}

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