diff --git a/doc/modules/ROOT/pages/algorithms/utility/loop_erased_random_walk.adoc b/doc/modules/ROOT/pages/algorithms/utility/loop_erased_random_walk.adoc index 66a68387c..9ab505bfe 100644 --- a/doc/modules/ROOT/pages/algorithms/utility/loop_erased_random_walk.adoc +++ b/doc/modules/ROOT/pages/algorithms/utility/loop_erased_random_walk.adoc @@ -110,7 +110,7 @@ Both throw `loop_erased_random_walk_stuck` if `out_degree(src, g) == 0`. [source,cpp] ---- struct loop_erased_random_walk_stuck : public std::exception { - virtual const char* what() const throw(); + virtual const char* what() const noexcept; }; ---- diff --git a/include/boost/graph/loop_erased_random_walk.hpp b/include/boost/graph/loop_erased_random_walk.hpp index 3c3f3c765..74a0b4a29 100644 --- a/include/boost/graph/loop_erased_random_walk.hpp +++ b/include/boost/graph/loop_erased_random_walk.hpp @@ -23,8 +23,8 @@ namespace boost struct BOOST_SYMBOL_VISIBLE loop_erased_random_walk_stuck : public std::exception { - virtual ~loop_erased_random_walk_stuck() throw() {} - inline virtual const char* what() const throw() + virtual ~loop_erased_random_walk_stuck() {} + inline virtual const char* what() const noexcept { return "Loop-erased random walk found a vertex with no out-edges"; }