Advertisement
gladiusmaximus

Untitled

May 22nd, 2014
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.08 KB | None | 0 0
  1. ---CODE---
  2. std::vector<Vertex> p(num_vertices(g));
  3.   std::vector<long> d(num_vertices(g));
  4.   dijkstra_shortest_paths(g, s,
  5.                           predecessor_map(boost::make_iterator_property_map(p.begin(), get(boost::vertex_index, g))).
  6.                           distance_map(boost::make_iterator_property_map(d.begin(), get(boost::vertex_index, g))));
  7.  
  8. ---ERROR---
  9. north.cpp: In function 'void findShortestPath()':
  10. north.cpp:101:114: error: no matching function for call to 'dijkstra_shortest_pat
  11. hs(Graph&, std::array<long int, 51500ul>&, boost::bgl_named_params<boost::iterato
  12. r_property_map<__gnu_cxx::__normal_iterator<long int*, std::vector<long int> >, b
  13. oost::vec_adj_list_vertex_id_map<boost::allow_parallel_edge_tag, long unsigned in
  14. t>, long int, long int&>, boost::vertex_distance_t, boost::bgl_named_params<boost
  15. ::iterator_property_map<__gnu_cxx::__normal_iterator<long unsigned int*, std::vec
  16. tor<long unsigned int> >, boost::vec_adj_list_vertex_id_map<boost::allow_parallel
  17. _edge_tag, long unsigned int>, long unsigned int, long unsigned int&>, boost::ver
  18. tex_predecessor_t, boost::no_property> >)'                                      
  19.  map(boost::make_iterator_property_map(d.begin(), get(boost::vertex_index, g))));
  20.                                                                                ^
  21. north.cpp:101:114: note: candidates are:
  22. In file included from north.cpp:10:0:
  23. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:347:3: note: template<class
  24. VertexListGraph, class DijkstraVisitor, class PredecessorMap, class DistanceMap,
  25. class WeightMap, class IndexMap, class Compare, class Combine, class DistInf, cla
  26. ss DistZero, class T, class Tag, class Base> void boost::dijkstra_shortest_paths(
  27. const VertexListGraph&, typename boost::graph_traits<Graph>::vertex_descriptor, P
  28. redecessorMap, DistanceMap, WeightMap, IndexMap, Compare, Combine, DistInf, DistZ
  29. ero, DijkstraVisitor, const boost::bgl_named_params<T, Tag, Base>&, typename boos
  30. t::enable_if_c<boost::is_base_and_derived<boost::vertex_list_graph_tag, typename
  31. boost::graph_traits<Graph>::traversal_category>::value, boost::graph::detail::no_
  32. parameter>::type)                                                              
  33.    dijkstra_shortest_paths
  34.    ^
  35. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:347:3: note:   template argu
  36. ment deduction/substitution failed:                                            
  37. north.cpp:101:114: note:   candidate expects 13 arguments, 3 provided
  38.  map(boost::make_iterator_property_map(d.begin(), get(boost::vertex_index, g))));
  39.                                                                                ^
  40. In file included from north.cpp:10:0:
  41. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:369:3: note: template<class
  42. VertexListGraph, class DijkstraVisitor, class PredecessorMap, class DistanceMap,
  43. class WeightMap, class IndexMap, class Compare, class Combine, class DistInf, cla
  44. ss DistZero, class ColorMap> void boost::dijkstra_shortest_paths(const VertexList
  45. Graph&, typename boost::graph_traits<Graph>::vertex_descriptor, PredecessorMap, D
  46. istanceMap, WeightMap, IndexMap, Compare, Combine, DistInf, DistZero, DijkstraVis
  47. itor, ColorMap)                                                                
  48.    dijkstra_shortest_paths
  49.    ^
  50. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:369:3: note:   template argu
  51. ment deduction/substitution failed:                                            
  52. north.cpp:101:114: note:   candidate expects 12 arguments, 3 provided
  53.  map(boost::make_iterator_property_map(d.begin(), get(boost::vertex_index, g))));
  54.                                                                                ^
  55. In file included from north.cpp:10:0:
  56. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:398:3: note: template<class
  57. VertexListGraph, class DijkstraVisitor, class PredecessorMap, class DistanceMap,
  58. class WeightMap, class IndexMap, class Compare, class Combine, class DistInf, cla
  59. ss DistZero> void boost::dijkstra_shortest_paths(const VertexListGraph&, typename
  60.  boost::graph_traits<Graph>::vertex_descriptor, PredecessorMap, DistanceMap, Weig
  61. htMap, IndexMap, Compare, Combine, DistInf, DistZero, DijkstraVisitor)          
  62.    dijkstra_shortest_paths
  63.    ^
  64. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:398:3: note:   template argu
  65. ment deduction/substitution failed:                                            
  66. north.cpp:101:114: note:   candidate expects 11 arguments, 3 provided
  67.  map(boost::make_iterator_property_map(d.begin(), get(boost::vertex_index, g))));
  68.                                                                                ^
  69. In file included from north.cpp:10:0:
  70. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:473:3: note: void boost::dij
  71. kstra_shortest_paths(const VertexListGraph&, typename boost::graph_traits<Graph>:
  72. :vertex_descriptor, const boost::bgl_named_params<T, Tag, Base>&) [with VertexLis
  73. tGraph = boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost
  74. ::allow_parallel_edge_tag, boost::property<boost::edge_weight_t, long int> >; Par
  75. am = boost::iterator_property_map<__gnu_cxx::__normal_iterator<long int*, std::ve
  76. ctor<long int> >, boost::vec_adj_list_vertex_id_map<boost::allow_parallel_edge_ta
  77. g, long unsigned int>, long int, long int&>; Tag = boost::vertex_distance_t; Rest
  78.  = boost::bgl_named_params<boost::iterator_property_map<__gnu_cxx::__normal_itera
  79. tor<long unsigned int*, std::vector<long unsigned int> >, boost::vec_adj_list_ver
  80. tex_id_map<boost::allow_parallel_edge_tag, long unsigned int>, long unsigned int,
  81.  long unsigned int&>, boost::vertex_predecessor_t, boost::no_property>; typename
  82. boost::graph_traits<Graph>::vertex_descriptor = long unsigned int]              
  83.    dijkstra_shortest_paths
  84.    ^
  85. /usr/include/boost/graph/dijkstra_shortest_paths.hpp:473:3: note:   no known conv
  86. ersion for argument 2 from 'std::array<long int, 51500ul>' to 'boost::graph_trait
  87. s<boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::allow
  88. _parallel_edge_tag, boost::property<boost::edge_weight_t, long int> > >::vertex_d
  89. escriptor {aka long unsigned int}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement