From b90537928588690f333442ea0a14e0eaa93ffd3e Mon Sep 17 00:00:00 2001 From: Jean-Louis Leroy Date: Tue, 16 Sep 2025 20:26:02 -0400 Subject: [PATCH] link into reference --- .../pages/BOOST_OPENMETHOD_DEFAULT_REGISTRY.adoc | 6 +++--- include/boost/openmethod/default_registry.hpp | 12 ++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/modules/ROOT/pages/BOOST_OPENMETHOD_DEFAULT_REGISTRY.adoc b/doc/modules/ROOT/pages/BOOST_OPENMETHOD_DEFAULT_REGISTRY.adoc index 4e0cb5a..68bb306 100644 --- a/doc/modules/ROOT/pages/BOOST_OPENMETHOD_DEFAULT_REGISTRY.adoc +++ b/doc/modules/ROOT/pages/BOOST_OPENMETHOD_DEFAULT_REGISTRY.adoc @@ -14,10 +14,10 @@ Defined in `<https://www.github.com/boostorg/openmethod/blob/develop/include/ The name of the default registry. -`BOOST_OPENMETHOD_DEFAULT_REGISTRY` is the default value for the `REGISTRY` template -parameter of `method`, `use_classes`, and other constructs defined in +`BOOST_OPENMETHOD_DEFAULT_REGISTRY` is the default value for the `Registry` +template parameter of `method`, `use_classes`, and other constructs defined in ``. If it is not defined, -`::boost::openmethod::REGISTRY::default_registry` is used. +link:reference/boost/openmethod/default_registry.html[`default_registry`] is used. `BOOST_OPENMETHOD_DEFAULT_REGISTRY` can be defined by a program to change the default REGISTRY globally. Once `` has been included, diff --git a/include/boost/openmethod/default_registry.hpp b/include/boost/openmethod/default_registry.hpp index 28eaa85..7ff82ae 100644 --- a/include/boost/openmethod/default_registry.hpp +++ b/include/boost/openmethod/default_registry.hpp @@ -23,9 +23,17 @@ struct release_registry //! Registry with runtime checks and trace enabled //! +//! `debug_registry` uses the same policies as @ref release_registry, with the +//! additional policies of @ref policies::runtime_checks and @ref +//! policies::trace. +//! //! This is the default value of -//! [BOOST_OPENMETHOD_DEFAULT_REGISTRY](../BOOST_OPENMETHOD_DEFAULT_REGISTRY.html) when NDEBUG -//! is not defined. +//! [BOOST_OPENMETHOD_DEFAULT_REGISTRY](../BOOST_OPENMETHOD_DEFAULT_REGISTRY.html) +//! when NDEBUG is not defined. +//! +//! `debug_registry` is derived from `release_registry::with<...>`, instead of +//! being aliased, to avoid creating long symbol names wherever it is used. Its +//! state is entirely distinct from `release_registry`\'s. struct debug_registry : release_registry::with {};