#define _SCL_SECURE_NO_WARNINGS #include #include using Grid = boost::grid_graph< 2 >; using Vertex = boost::graph_traits< Grid >::vertex_descriptor; struct DijkstraHeuristic : boost::astar_heuristic< Grid, int > { int operator()( const Vertex& ) noexcept { return 0; } }; int main( int, char** ) { Grid grid{ { 30u, 1u } }; boost::static_property_map< int > weights{ 1 }; const Vertex start{ 0u, 0u }; boost::astar_search( grid, start, DijkstraHeuristic{}, boost::weight_map( weights ) ); return 0; }