[Boost-bugs] [Boost C++ Libraries] #8962: adjacency_list doesn't work with hash_setS

Subject: [Boost-bugs] [Boost C++ Libraries] #8962: adjacency_list doesn't work with hash_setS
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-04 00:44:16


#8962: adjacency_list doesn't work with hash_setS
-------------------------------------+------------------------
 Reporter: Rob Patro <rob.patro@…> | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.54.0 | Severity: Regression
 Keywords: |
-------------------------------------+------------------------
 When compiling under Clang (3.3 final), the following code results in a
 compile error due to template lookup failure. It compiles cleanly under
 G++ 4.8. Replacing hash_setS with setS allows the code to compile.

 {{{
 #include <boost/graph/adjacency_list.hpp>
 #include <iostream>

 int main(int argc, char* argv[]) {

     typedef boost::adjacency_list<boost::hash_setS, boost::vecS,
 boost::undirectedS > undirectedGraphT;
     undirectedGraphT G;
     boost::add_edge(1, 2, G);
     typedef boost::graph_traits <undirectedGraphT>::edge_descriptor Edge;
     Edge e;
     bool hasEdge{false};

     std::tie(e, hasEdge) = boost::edge(1, 2, G);

     std::cout << (hasEdge ? "did " : "did not ") << "find edge\n";
 }
 }}}

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