prog.cpp: In function 'int main()':
prog.cpp:24:48: error: no matching function for call to 'in_edges(unsigned int&, tree_t&)'
auto pair_it_edge = boost::in_edges( v2, tree );
^
In file included from /usr/include/boost/graph/adjacency_list.hpp:246:0,
from prog.cpp:1:
/usr/include/boost/graph/detail/adjacency_list.hpp:1051:5: note: candidate: template<class Config> std::pair<typename Config::in_edge_iterator, typename Config::in_edge_iterator> boost::in_edges(typename Config::vertex_descriptor, const boost::undirected_graph_helper<C>&)
in_edges(typename Config::vertex_descriptor u,
^
/usr/include/boost/graph/detail/adjacency_list.hpp:1051:5: note: template argument deduction/substitution failed:
prog.cpp:24:48: note: 'tree_t {aka boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, TreeVertex>}' is not derived from 'const boost::undirected_graph_helper<C>'
auto pair_it_edge = boost::in_edges( v2, tree );
^
In file included from /usr/include/boost/graph/adjacency_list.hpp:246:0,
from prog.cpp:1:
/usr/include/boost/graph/detail/adjacency_list.hpp:1124:5: note: candidate: template<class Config> std::pair<typename Config::in_edge_iterator, typename Config::in_edge_iterator> boost::in_edges(typename Config::vertex_descriptor, const boost::bidirectional_graph_helper<C>&)
in_edges(typename Config::vertex_descriptor u,
^
/usr/include/boost/graph/detail/adjacency_list.hpp:1124:5: note: template argument deduction/substitution failed:
prog.cpp:24:48: note: 'tree_t {aka boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, TreeVertex>}' is not derived from 'const boost::bidirectional_graph_helper<C>'
auto pair_it_edge = boost::in_edges( v2, tree );
^