Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac #30247: catch new exception appearing with boost 1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoudert committed Aug 14, 2020
1 parent 8bbf195 commit bfc181f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/graphs/base/boost_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ class BoostGraph
.predecessor_map(boost::make_iterator_property_map(predecessors.begin(), index)));
} catch (boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::negative_edge> > e) {
return to_return;
} catch (boost::wrapexcept<boost::negative_edge> e) {
// needed since boost 1.7.3
return to_return;
}

to_return.distances = distances;
Expand Down

0 comments on commit bfc181f

Please sign in to comment.