From 6009424a813f6d6eee982c7d16e43e23c4803a76 Mon Sep 17 00:00:00 2001 From: Andrea Cassioli Date: Sat, 3 Oct 2026 17:39:33 +0200 Subject: [PATCH 1/2] drop throw in favour of noexcept --- include/boost/graph/loop_erased_random_walk.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; } From 3bab18131b2b53bbbe621b09c659c49e6449a6a1 Mon Sep 17 00:00:00 2001 From: andreacassioli Date: Thu, 8 Oct 2026 17:32:46 +0200 Subject: [PATCH 2/2] update docs --- .../ROOT/pages/algorithms/utility/loop_erased_random_walk.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }; ----