Commit d5f311ec authored by Tiago Peixoto's avatar Tiago Peixoto

Disable astar_iterator() if boost::coroutine is unavailable

parent 5dbe3935
Pipeline #59 failed with stage
......@@ -178,6 +178,7 @@ boost::python::object astar_search_generator_fast(GraphInterface& g,
python::object inf,
python::object h)
{
#ifdef HAVE_BOOST_COROUTINE
auto dispatch = [&](auto& yield)
{
AStarGeneratorVisitor vis(g, yield);
......@@ -188,7 +189,9 @@ boost::python::object astar_search_generator_fast(GraphInterface& g,
writable_vertex_scalar_properties(),
edge_scalar_properties())(dist_map, weight);
};
#else
return boost::python::object(AStarGenerator(dispatch));
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment